Skip to content

Commit

Permalink
Allow exiting through the menu
Browse files Browse the repository at this point in the history
  • Loading branch information
woelper committed Feb 11, 2024
1 parent f9b00a8 commit 39b82ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2180,6 +2180,10 @@ pub fn main_menu(ui: &mut Ui, state: &mut OculanteState, app: &mut App, gfx: &mu
}
});

if ui.button("Quit").clicked() {
app.backend.exit();
}

// TODO: expose favourites with a tool button
// ui.menu_button("Favourites", |ui| {
// for r in &state.persistent_settings.favourite_images.clone() {
Expand Down

0 comments on commit 39b82ea

Please sign in to comment.