diff options
Diffstat (limited to '')
| -rw-r--r-- | iced_builder/src/main.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/iced_builder/src/main.rs b/iced_builder/src/main.rs index 02e1ae0..86e478d 100644 --- a/iced_builder/src/main.rs +++ b/iced_builder/src/main.rs @@ -14,7 +14,6 @@ use iced_builder::types::{ Action, DesignerPage, ElementName, Message, Project, }; use iced_builder::{icon, Error}; -use rfd::MessageDialogResult; use tokio::runtime; fn main() -> Result<(), Box<dyn std::error::Error>> { @@ -235,7 +234,7 @@ impl App { self.project_path = None; self.editor_content = text_editor::Content::new(); } else { - if let MessageDialogResult::Ok = unsaved_changes_dialog("You have unsaved changes. Do you wish to discard these and create a new project?") { + if unsaved_changes_dialog("You have unsaved changes. Do you wish to discard these and create a new project?") { self.is_dirty = false; self.project = Project::new(); self.project_path = None; @@ -254,7 +253,7 @@ impl App { Message::FileOpened, ); } else { - if let MessageDialogResult::Ok = unsaved_changes_dialog("You have unsaved changes. Do you wish to discard these and open another project?") { + if unsaved_changes_dialog("You have unsaved changes. Do you wish to discard these and open another project?") { self.is_dirty = false; self.is_loading = true; return Task::perform(Project::from_file(), Message::FileOpened); |
