EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust
Merge pull request #447 from David-T-Campos/fix/footage-drag-drop
Claude63acbb1eb0d6
diff --cc apps/effectcraft/src/main.rsindex 2b9fd86ff,c73e18ec5..bc16a0200--- a/apps/effectcraft/src/main.rs+++ b/apps/effectcraft/src/main.rs@@@ -39,15 -36,13 +39,22 @@@ fn app_icon() -> egui::IconDataeframe::icon_data::from_png_bytes(png).unwrap_or_default()}+/// Both native JSON projects and Save a Copy As XML projects are openable on launch.+/// Keep this classification shared by project opening and the subsequent media-import pass.+fn is_project_file(path: &str) -> bool {+ std::path::Path::new(path)+ .extension()+ .and_then(|ext| ext.to_str())+ .is_some_and(|ext| ext.eq_ignore_ascii_case("ecproj") || ext.eq_ignore_ascii_case("ecprojx"))+}++ /// winit 0.30 cannot deliver native Wayland file drops. XWayland can.+ #[cfg(target_os = "linux")]+ fn wayland_drop_notice(wayland_display: Option<&std::ffi::OsStr>, backend: Option<&std::ffi::OsStr>) -> Option<&'static str> {+ (wayland_display.is_some_and(|v| !v.is_empty()) && backend != Some(std::ffi::OsStr::new("x11")))+ .then_some("Native Wayland file drops are unavailable. Use File > Import > File... or run via XWayland (see docs/footage.md).")+ }+/// The command line.#[derive(Debug, Default, PartialEq)]struct Args {