mirror of
https://github.com/emilk/egui.git
synced 2026-09-03 07:10:04 -04:00
file_dialogs example: remove macos exemption
this got fixed in the latest winit upgrade
This commit is contained in:
@@ -15,9 +15,7 @@ impl epi::App for MyApp {
|
|||||||
egui::CentralPanel::default().show(ctx, |ui| {
|
egui::CentralPanel::default().show(ctx, |ui| {
|
||||||
ui.label("Drag-and-drop files onto the window!");
|
ui.label("Drag-and-drop files onto the window!");
|
||||||
|
|
||||||
if cfg!(target_os = "macos") {
|
if ui.button("Open file…").clicked() {
|
||||||
// Awaiting fix of winit bug: https://github.com/rust-windowing/winit/pull/2027
|
|
||||||
} else if ui.button("Open file…").clicked() {
|
|
||||||
if let Some(path) = rfd::FileDialog::new().pick_file() {
|
if let Some(path) = rfd::FileDialog::new().pick_file() {
|
||||||
self.picked_path = Some(path.display().to_string());
|
self.picked_path = Some(path.display().to_string());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user