Skip to content

Commit

Permalink
file_dialogs example: remove macos exemption
Browse files Browse the repository at this point in the history
this got fixed in the latest winit upgrade
  • Loading branch information
emilk committed Dec 26, 2021
1 parent d5efa4b commit 647e020
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions eframe/examples/file_dialog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 647e020

Please sign in to comment.