2022-01-10 17:57:39 +00:00
|
|
|
use dioxus::prelude::*;
|
2022-09-13 23:22:27 +00:00
|
|
|
use dioxus_desktop::Config;
|
2022-01-10 17:57:39 +00:00
|
|
|
|
|
|
|
fn main() {
|
2024-01-16 14:42:16 +00:00
|
|
|
LaunchBuilder::new(app)
|
|
|
|
.cfg(Config::new().with_file_drop_handler(|_w, e| {
|
2024-01-15 21:06:05 +00:00
|
|
|
println!("{e:?}");
|
|
|
|
true
|
2024-01-16 14:42:16 +00:00
|
|
|
}))
|
2024-01-16 17:45:02 +00:00
|
|
|
.launch_desktop()
|
2022-01-10 17:57:39 +00:00
|
|
|
}
|
|
|
|
|
2024-01-16 01:04:39 +00:00
|
|
|
fn app() -> Element {
|
2024-01-16 18:28:21 +00:00
|
|
|
render!(
|
2024-01-16 14:42:16 +00:00
|
|
|
div { h1 { "drag a file here and check your console" } }
|
2024-01-14 05:12:21 +00:00
|
|
|
)
|
2022-01-10 17:57:39 +00:00
|
|
|
}
|