From a87bded17d7cb18130d6777ef3ffd3441a3234b8 Mon Sep 17 00:00:00 2001 From: goeiecool9999 <7033575+goeiecool9999@users.noreply.github.com> Date: Thu, 18 Dec 2025 15:26:39 +0100 Subject: [PATCH] UI: Make File menu exit option use OnClose for cleaner shutdown --- src/gui/wxgui/MainWindow.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gui/wxgui/MainWindow.cpp b/src/gui/wxgui/MainWindow.cpp index b69293f2..c8c5127c 100644 --- a/src/gui/wxgui/MainWindow.cpp +++ b/src/gui/wxgui/MainWindow.cpp @@ -807,9 +807,7 @@ void MainWindow::OnNFCMenu(wxCommandEvent& event) void MainWindow::OnFileExit(wxCommandEvent& event) { - // todo: Safely clean up everything - SaveSettings(); - exit(0); + Close(); } void MainWindow::TogglePadView()