file_dialogs example: remove macos exemption
this got fixed in the latest winit upgrade
This commit is contained in:
parent
d5efa4bbca
commit
647e020824
1 changed files with 1 additions and 3 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue