mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
Prevent ShortcutGuide from crashing when it is being disabled while shown.
This commit is contained in:
committed by
Bartosz Sosnowski
parent
d6f0f9ec0e
commit
d84342733d
@@ -101,6 +101,7 @@ void OverlayWindow::enable() {
|
||||
|
||||
void OverlayWindow::disable(bool trace_event) {
|
||||
if (_enabled) {
|
||||
_enabled = false;
|
||||
if (trace_event) {
|
||||
Trace::EnableShortcutGuide(false);
|
||||
}
|
||||
@@ -111,7 +112,6 @@ void OverlayWindow::disable(bool trace_event) {
|
||||
target_state = nullptr;
|
||||
winkey_popup = nullptr;
|
||||
}
|
||||
_enabled = false;
|
||||
}
|
||||
|
||||
void OverlayWindow::disable() {
|
||||
|
||||
Reference in New Issue
Block a user