mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
[KBM] Constrain the buttons such that only one of the windows can be opened (#2566)
* Bypass XamlBridge Window focus handling * Constrain only one window can be opened at a time * Revert changes on files changed in another PR * Changed WM_DESTROY to WM_NCDESTROY Co-authored-by: Tomas Raies <tomas.raies@gmail.com>
This commit is contained in:
@@ -225,14 +225,14 @@ public:
|
||||
|
||||
if (action_object.get_name() == L"RemapKeyboard")
|
||||
{
|
||||
if (!CheckEditKeyboardWindowActive())
|
||||
if (!CheckEditKeyboardWindowActive() && !CheckEditShortcutsWindowActive())
|
||||
{
|
||||
std::thread(createEditKeyboardWindow, hInstance, std::ref(keyboardManagerState)).detach();
|
||||
}
|
||||
}
|
||||
else if (action_object.get_name() == L"EditShortcut")
|
||||
{
|
||||
if (!CheckEditShortcutsWindowActive())
|
||||
if (!CheckEditKeyboardWindowActive() && !CheckEditShortcutsWindowActive())
|
||||
{
|
||||
std::thread(createEditShortcutsWindow, hInstance, std::ref(keyboardManagerState)).detach();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user