disable apps for shortcut guide (#10123)

This commit is contained in:
Davide Giacometti
2021-04-02 16:29:48 +02:00
committed by GitHub
parent 6561290bde
commit bc28a3f5e3
6 changed files with 152 additions and 0 deletions

View File

@@ -37,6 +37,10 @@ public:
bool overlay_visible() const;
bool is_disabled_app(wchar_t* exePath);
void get_exe_path(HWND window, wchar_t* exePath);
private:
std::wstring app_name;
//contains the non localized key of the powertoy
@@ -46,9 +50,11 @@ private:
bool _enabled = false;
HHOOK hook_handle;
std::unique_ptr<NativeEventWaiter> event_waiter;
std::vector<std::wstring> disabled_apps_array;
void init_settings();
void disable(bool trace_event);
void update_disabled_apps();
struct PressTime
{
@@ -75,4 +81,10 @@ private:
{ L"dark", IDS_SETTING_DESCRIPTION_THEME_DARK }
};
} theme;
struct DisabledApps
{
PCWSTR name = L"disabled_apps";
std::wstring value = L"";
} disabledApps;
};