mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-15 12:09:18 +08:00
55272e5ea2
* Added flag to avoid saving before modules is initialized * Added comment
26 lines
637 B
C++
26 lines
637 B
C++
#pragma once
|
|
|
|
#include <common/json.h>
|
|
|
|
struct GeneralSettings
|
|
{
|
|
bool isPackaged;
|
|
bool isStartupEnabled;
|
|
std::wstring startupDisabledReason;
|
|
std::map<std::wstring, bool> isModulesEnabledMap;
|
|
bool isElevated;
|
|
bool isRunElevated;
|
|
bool isAdmin;
|
|
bool downloadUpdatesAutomatically;
|
|
std::wstring theme;
|
|
std::wstring systemTheme;
|
|
std::wstring powerToysVersion;
|
|
|
|
json::JsonObject to_json();
|
|
};
|
|
|
|
json::JsonObject load_general_settings();
|
|
GeneralSettings get_general_settings();
|
|
void apply_general_settings(const json::JsonObject& general_configs, bool save = true);
|
|
void start_initial_powertoys();
|