From 4e5c701ef6b22f169141d539767bd083032e36f6 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Fri, 6 Dec 2024 18:38:51 -0500 Subject: [PATCH] Set restart setting when user chooses to exit and restart. --- src/app/MenuBar.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/MenuBar.cpp b/src/app/MenuBar.cpp index 052d1c9d..3fa678a7 100644 --- a/src/app/MenuBar.cpp +++ b/src/app/MenuBar.cpp @@ -959,6 +959,7 @@ struct LibraryButton : MenuButton { library::restartRequested = false; if (osdialog_message(OSDIALOG_INFO, OSDIALOG_OK_CANCEL, string::translate("MenuBar.library.restart").c_str())) { APP->window->close(); + settings::restart = true; } } @@ -1170,6 +1171,7 @@ void appendLanguageMenu(ui::Menu* menu) { std::string msg = string::f(string::translate("MenuBar.help.language.restart"), string::translate("language")); if (osdialog_message(OSDIALOG_INFO, OSDIALOG_OK_CANCEL, msg.c_str())) { APP->window->close(); + settings::restart = true; } })); }