Fix version was not properly updated on non windows OS (#14617)

Fixed an issue where on non-Windows systems, the version was not properly written to the appconfig.
This commit is contained in:
SoftFever
2026-07-06 22:16:28 +08:00
parent c95887a93f
commit 8500fcdcca

View File

@@ -2839,10 +2839,11 @@ bool GUI_App::on_init_inner()
//update_label_colours_from_appconfig();
}
if (bool new_sys_menu_enabled = app_config->get("sys_menu_enabled") == "1";
init_sys_menu_enabled != new_sys_menu_enabled)
init_sys_menu_enabled != new_sys_menu_enabled) {
#ifdef __WINDOWS__
NppDarkMode::SetSystemMenuForApp(new_sys_menu_enabled);
#endif
}
#endif
// Orca: we allow user to pin the version of plugin, so we don't need to remove old networking plugins when the app version is updated