OSD: fix race condition

This commit is contained in:
Ly-sec
2025-09-23 18:42:05 +02:00
parent 4cd53c4083
commit 0b5ef30b34
+4 -1
View File
@@ -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
}
}
}