Skip to content

Commit

Permalink
chore: satisfy latest clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
flxzt committed Jul 4, 2024
1 parent 7e1b386 commit c3944cd
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions crates/rnote-ui/src/appwindow/imp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,14 +269,12 @@ impl WindowImpl for RnAppWindow {
None,
&mut self.save_in_progress_toast.borrow_mut(),
);
} else if obj.tabs_any_unsaved_changes() {
glib::spawn_future_local(clone!(@weak obj as appwindow => async move {
dialogs::dialog_close_window(&appwindow).await;
}));
} else {
if obj.tabs_any_unsaved_changes() {
glib::spawn_future_local(clone!(@weak obj as appwindow => async move {
dialogs::dialog_close_window(&appwindow).await;
}));
} else {
obj.close_force();
}
obj.close_force();
}

// Inhibit (Overwrite) the default handler. This handler is then responsible for destroying the window.
Expand Down

0 comments on commit c3944cd

Please sign in to comment.