mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
* Adding in InfoBar warning when not running as admin * small newline text shift * rolling out a text fix i didn't mean to commit * defaulting to off, there are other spots is seems like * [Runner] introduce is_enabled_by_default method and keep VCM disabled by default * getting file back in good state Co-authored-by: yuyoyuppe <a.yuyoyuppe@gmail.com>
24 lines
621 B
C++
24 lines
621 B
C++
#pragma once
|
|
|
|
#include <common/utils/json.h>
|
|
|
|
struct GeneralSettings
|
|
{
|
|
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_enabled_powertoys(); |