mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
disable apps for shortcut guide (#10123)
This commit is contained in:
committed by
GitHub
parent
6561290bde
commit
bc28a3f5e3
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user