Skip to content

Commit a87bded

Browse files
committed
UI: Make File menu exit option use OnClose for cleaner shutdown
1 parent 6cee127 commit a87bded

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/gui/wxgui/MainWindow.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -807,9 +807,7 @@ void MainWindow::OnNFCMenu(wxCommandEvent& event)
807807

808808
void MainWindow::OnFileExit(wxCommandEvent& event)
809809
{
810-
// todo: Safely clean up everything
811-
SaveSettings();
812-
exit(0);
810+
Close();
813811
}
814812

815813
void MainWindow::TogglePadView()

0 commit comments

Comments
 (0)