start migrating desktop to sledgehammer

This commit is contained in:
Evan Almloff committed 2023-10-13 09:21:57 -05:00
1 parent 1a4741ce04
commit 3063d83406
4 files changed
+11 -5

No files matched your search

+8 -2
View File
@@ -44,8 +44,14 @@ pub fn build(
_ = proxy.send_event(UserWindowEvent(EventData::Ipc(message), window.id()));
}
})
.with_custom_protocol(String::from("dioxus"), move |r| {
protocol::desktop_handler(r, custom_head.clone(), index_file.clone(), &root_name)
.with_asynchronous_custom_protocol("dioxus".into(), move |r, responder| {
protocol::desktop_handler(
r,
responder,
custom_head.clone(),
index_file.clone(),
&root_name,
)
})
.with_file_drop_handler(move |window, evet| {
file_handler