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:
@@ -2839,10 +2839,11 @@ bool GUI_App::on_init_inner()
|
|||||||
//update_label_colours_from_appconfig();
|
//update_label_colours_from_appconfig();
|
||||||
}
|
}
|
||||||
if (bool new_sys_menu_enabled = app_config->get("sys_menu_enabled") == "1";
|
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__
|
#ifdef __WINDOWS__
|
||||||
NppDarkMode::SetSystemMenuForApp(new_sys_menu_enabled);
|
NppDarkMode::SetSystemMenuForApp(new_sys_menu_enabled);
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
#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
|
// 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
|
||||||
|
|||||||
Reference in New Issue
Block a user