[runner]fix disabling module as admin (#15818)

This commit is contained in:
Stefan Markovic 2022-01-28 16:22:40 +01:00 committed by GitHub
parent 91d36b4b47
commit b98be49bfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -406,8 +406,8 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
}
// Save settings on closing
auto general_settings = load_general_settings();
apply_general_settings(general_settings);
auto general_settings = get_general_settings();
PTSettingsHelper::save_general_settings(general_settings.to_json());
// We need to release the mutexes to be able to restart the application
if (msi_mutex)