From 0b5ef30b347c80d3a9321fc445e77fef3e105668 Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Tue, 23 Sep 2025 18:42:05 +0200 Subject: [PATCH] OSD: fix race condition --- Modules/OSD/OSD.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Modules/OSD/OSD.qml b/Modules/OSD/OSD.qml index 0063d5d4..b10e4a5f 100644 --- a/Modules/OSD/OSD.qml +++ b/Modules/OSD/OSD.qml @@ -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 } } }