Place: the dropped-file loop stays out of the web build

This commit is contained in:
aiongg
2026-10-14 17:15:50 +00:00
parent 8648cb0020
commit f1118d826e
+7 -5
View File
@@ -934,11 +934,13 @@ impl DesignApp {
menus::shortcuts(self, ctx);
}
#[cfg(not(target_arch = "wasm32"))]
let (dropped, pointer) = ctx.input(|i| (i.raw.dropped_files.clone(), i.pointer.hover_pos()));
for f in dropped {
let p = f.path().to_string_lossy().to_string();
if !p.is_empty() {
let _ = self.open_dropped_at(&p, pointer);
{
let (dropped, pointer) = ctx.input(|i| (i.raw.dropped_files.clone(), i.pointer.hover_pos()));
for f in dropped {
let p = f.path().to_string_lossy().to_string();
if !p.is_empty() {
let _ = self.open_dropped_at(&p, pointer);
}
}
}
self.handle_quit(ctx);