fix(panel): reset closedImmediately flag reliably after panel close

This commit is contained in:
Lemmy
2026-03-19 20:23:03 -04:00
parent e08b08893e
commit b4d12870d1
+9
View File
@@ -399,6 +399,15 @@ Singleton {
assignToSlot(1, null);
}
// Reset closedImmediately after the current event cycle so all Behaviors
// that check it have processed their snaps. Cannot rely on MainScreen's
// onColorChanged because the color may already be transparent (dimmerOpacity=0).
if (closedImmediately) {
Qt.callLater(() => {
closedImmediately = false;
});
}
// Reset keyboard init state
isInitializingKeyboard = false;
keyboardInitTimer.stop();