mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
OSD: fix race condition
This commit is contained in:
+4
-1
@@ -306,8 +306,11 @@ Loader {
|
||||
}
|
||||
|
||||
function hideOSD() {
|
||||
if (windowLoader.item) {
|
||||
if (windowLoader.item && windowLoader.item.osdItem) {
|
||||
windowLoader.item.osdItem.hideImmediately()
|
||||
} else if (windowLoader.active) {
|
||||
// If window exists but osdItem isn't ready, just deactivate the loader
|
||||
windowLoader.active = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user