We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d9be68 commit 56a2c27Copy full SHA for 56a2c27
src/gui.rs
@@ -1220,6 +1220,18 @@ impl MyApp {
1220
egui_logger::logger_ui().show(ui);
1221
});
1222
1223
+ ctx.input(|i| {
1224
+ // Check if files were dropped
1225
+ if let Some(dropped_file) = i.raw.dropped_files.last() {
1226
+ let path = dropped_file.clone().path.unwrap();
1227
+ self.picked_path = path.to_path_buf();
1228
+ self.file_opened = true;
1229
+ if let Err(e) = self.load_tx.send(self.picked_path.clone()) {
1230
+ log::error!("load_tx thread send failed: {:?}", e);
1231
+ }
1232
1233
+ });
1234
+
1235
match self.file_dialog_state {
1236
FileDialogState::Open => {
1237
if let Some(path) = self
0 commit comments