mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +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) {
|
void OverlayWindow::disable(bool trace_event) {
|
||||||
if (_enabled) {
|
if (_enabled) {
|
||||||
|
_enabled = false;
|
||||||
if (trace_event) {
|
if (trace_event) {
|
||||||
Trace::EnableShortcutGuide(false);
|
Trace::EnableShortcutGuide(false);
|
||||||
}
|
}
|
||||||
@@ -111,7 +112,6 @@ void OverlayWindow::disable(bool trace_event) {
|
|||||||
target_state = nullptr;
|
target_state = nullptr;
|
||||||
winkey_popup = nullptr;
|
winkey_popup = nullptr;
|
||||||
}
|
}
|
||||||
_enabled = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void OverlayWindow::disable() {
|
void OverlayWindow::disable() {
|
||||||
|
|||||||
Reference in New Issue
Block a user