Prevent ShortcutGuide from crashing when it is being disabled while shown.

This commit is contained in:
Bartosz Sosnowski
2019-11-25 13:45:41 +01:00
committed by Bartosz Sosnowski
parent d6f0f9ec0e
commit d84342733d

View File

@@ -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() {