diff options
| author | ATMDA <atdma2600@gmail.com> | 2025-11-17 19:27:45 -0500 |
|---|---|---|
| committer | ATMDA <atdma2600@gmail.com> | 2025-11-17 19:27:45 -0500 |
| commit | 34abc91523de0c2632f725e2b2ffb39e8e0ef18d (patch) | |
| tree | d0510d11ccce5977f76630cc8e222ee7b4582ae6 /modules/controlcenter/NavRail.qml | |
| parent | controlcenter: renamed panel titles from settings to panel name (diff) | |
| download | caelestia-shell-34abc91523de0c2632f725e2b2ffb39e8e0ef18d.tar.gz caelestia-shell-34abc91523de0c2632f725e2b2ffb39e8e0ef18d.tar.bz2 caelestia-shell-34abc91523de0c2632f725e2b2ffb39e8e0ef18d.zip | |
controlcenter: prevented changing panes before opening animation completes
Diffstat (limited to 'modules/controlcenter/NavRail.qml')
| -rw-r--r-- | modules/controlcenter/NavRail.qml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/controlcenter/NavRail.qml b/modules/controlcenter/NavRail.qml index d1d432d..1de1a9e 100644 --- a/modules/controlcenter/NavRail.qml +++ b/modules/controlcenter/NavRail.qml @@ -13,6 +13,7 @@ Item { required property ShellScreen screen required property Session session + required property bool initialOpeningComplete implicitWidth: layout.implicitWidth + Appearance.padding.larger * 4 implicitHeight: layout.implicitHeight + Appearance.padding.large * 2 @@ -197,6 +198,10 @@ Item { color: item.active ? Colours.palette.m3onSecondaryContainer : Colours.palette.m3onSurface function onClicked(): void { + // Prevent tab switching during initial opening animation to avoid blank pages + if (!root.initialOpeningComplete) { + return; + } root.session.active = item.label; } } |