mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-23 15:09:41 +01:00
Fix settings issue where settings.json would get reset on runner startup (#4524)
* Added flag to avoid saving before modules is initialized * Added comment
This commit is contained in:
@@ -376,7 +376,9 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
||||
modules();
|
||||
|
||||
auto general_settings = load_general_settings();
|
||||
apply_general_settings(general_settings);
|
||||
|
||||
// Apply the general settings but don't save it as the modules() variable has not been loaded yet
|
||||
apply_general_settings(general_settings, false);
|
||||
int rvalue = 0;
|
||||
const bool elevated = is_process_elevated();
|
||||
if ((elevated ||
|
||||
|
||||
Reference in New Issue
Block a user