mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
* add scoobe setting * update comment * fix spelling * fix settings layout * fix xaml formatting * fix viewModel * fix settings page * fix general_settings.cpp * Update policy name and description * Update the settings name
27 lines
725 B
C++
27 lines
725 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 enableWarningsElevatedApps;
|
|
bool downloadUpdatesAutomatically;
|
|
bool showWhatsNewAfterUpdates;
|
|
bool enableExperimentation;
|
|
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(); |