From 52ae4333e3cd55662ff15e373b2410d0b89f04fd Mon Sep 17 00:00:00 2001 From: Eric Handley Date: Tue, 3 Mar 2026 16:01:06 -0800 Subject: [PATCH] fix(launcher): use readonly prop to check if animations are enabled --- Modules/MainScreen/SmartPanel.qml | 4 +++- Modules/Panels/Launcher/LauncherCore.qml | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Modules/MainScreen/SmartPanel.qml b/Modules/MainScreen/SmartPanel.qml index fb09ee27b..1c8956e53 100644 --- a/Modules/MainScreen/SmartPanel.qml +++ b/Modules/MainScreen/SmartPanel.qml @@ -72,6 +72,8 @@ Item { property bool cachedAnimateFromBottom: false property bool cachedAnimateFromLeft: false property bool cachedAnimateFromRight: false + + readonly property bool animationsDisabled: Settings.data.general.animationDisabled property bool cachedShouldAnimateWidth: false property bool cachedShouldAnimateHeight: false @@ -1313,7 +1315,7 @@ Item { // Make panel visible, now only the intended dimension will animate root.isPanelVisible = true; - if (Style.animationNormal === 0) { + if (root.animationsDisabled) { // Skip delay when animations are disabled root.sizeAnimationComplete = true; } else { diff --git a/Modules/Panels/Launcher/LauncherCore.qml b/Modules/Panels/Launcher/LauncherCore.qml index de21c8f97..98c13e7cf 100644 --- a/Modules/Panels/Launcher/LauncherCore.qml +++ b/Modules/Panels/Launcher/LauncherCore.qml @@ -47,7 +47,7 @@ Rectangle { Timer { id: mouseTrackingDelayTimer - interval: Style.animationNormal === 0 ? 0 : (Style.animationNormal + 50) // Wait for panel animation to complete + safety margin + interval: root.animationsDisabled ? 0 : (Style.animationNormal + 50) // Wait for panel animation to complete + safety margin repeat: false onTriggered: { root.mouseTrackingReady = true; @@ -57,6 +57,7 @@ Rectangle { readonly property var defaultProvider: appsProvider readonly property var currentProvider: activeProvider || defaultProvider + readonly property bool animationsDisabled: Settings.data.general.animationDisabled readonly property string launcherDensity: (currentProvider && currentProvider.ignoreDensity === false) ? (Settings.data.appLauncher.density || "default") : "comfortable" readonly property int effectiveIconSize: launcherDensity === "comfortable" ? 48 : (launcherDensity === "default" ? 36 : 24)