Launcher: close immediately fix

This commit is contained in:
Lemmy
2026-01-02 16:34:52 -05:00
parent de35d247a5
commit 5a4f9480d6
+5 -8
View File
@@ -231,23 +231,20 @@ Item {
}
function closeImmediately() {
// Close without any animation - useful for app launches to avoid focus issues
// Close without any animation, useful for app launches to avoid focus issues
opacityTrigger.stop();
openWatchdogActive = false;
openWatchdogTimer.stop();
closeWatchdogActive = false;
closeWatchdogTimer.stop();
// Set opacity to 0 immediately
root.opacity = 0;
// Finalize close state
root.closeFinalized = true;
// Don't set opacity directly as it breaks the binding
root.isPanelVisible = false;
root.isPanelOpen = false;
root.sizeAnimationComplete = false;
root.isClosing = false;
root.opacityFadeComplete = false;
root.sizeAnimationComplete = false;
root.closeFinalized = true;
root.isPanelOpen = false;
panelBackground.dimensionsInitialized = false;
PanelService.closedPanel(root);