From 647e020824401bd499f368427f0ab9ae58365409 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Sun, 26 Dec 2021 18:13:29 +0100 Subject: [PATCH] file_dialogs example: remove macos exemption this got fixed in the latest winit upgrade --- eframe/examples/file_dialog.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/eframe/examples/file_dialog.rs b/eframe/examples/file_dialog.rs index 2de6e3f4..ccc757a1 100644 --- a/eframe/examples/file_dialog.rs +++ b/eframe/examples/file_dialog.rs @@ -15,9 +15,7 @@ impl epi::App for MyApp { egui::CentralPanel::default().show(ctx, |ui| { ui.label("Drag-and-drop files onto the window!"); - if cfg!(target_os = "macos") { - // Awaiting fix of winit bug: https://github.com/rust-windowing/winit/pull/2027 - } else if ui.button("Open file…").clicked() { + if ui.button("Open file…").clicked() { if let Some(path) = rfd::FileDialog::new().pick_file() { self.picked_path = Some(path.display().to_string()); }