From 834a684d6f37164485e299275c8498a77cce1df4 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 1 Jun 2025 10:10:57 +0200 Subject: [PATCH] remove persistent state for bottom sidebar group tabs (buggy) --- .config/quickshell/modules/common/PersistentStates.qml | 1 - .../quickshell/modules/sidebarRight/BottomWidgetGroup.qml | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.config/quickshell/modules/common/PersistentStates.qml b/.config/quickshell/modules/common/PersistentStates.qml index cbf52e8e..30d89795 100644 --- a/.config/quickshell/modules/common/PersistentStates.qml +++ b/.config/quickshell/modules/common/PersistentStates.qml @@ -11,7 +11,6 @@ Singleton { property QtObject sidebar: QtObject { property QtObject bottomGroup: QtObject { property bool collapsed: false - property int selectedTab: 0 } } diff --git a/.config/quickshell/modules/sidebarRight/BottomWidgetGroup.qml b/.config/quickshell/modules/sidebarRight/BottomWidgetGroup.qml index 66ebf051..882d3a03 100644 --- a/.config/quickshell/modules/sidebarRight/BottomWidgetGroup.qml +++ b/.config/quickshell/modules/sidebarRight/BottomWidgetGroup.qml @@ -14,17 +14,13 @@ Rectangle { color: Appearance.colors.colLayer1 clip: true implicitHeight: collapsed ? collapsedBottomWidgetGroupRow.implicitHeight : bottomWidgetGroupRow.implicitHeight - property int selectedTab: PersistentStates.sidebar.bottomGroup.selectedTab + property int selectedTab: 0 property bool collapsed: PersistentStates.sidebar.bottomGroup.collapsed property var tabs: [ {"type": "calendar", "name": "Calendar", "icon": "calendar_month", "widget": calendarWidget}, {"type": "todo", "name": "To Do", "icon": "done_outline", "widget": todoWidget} ] - onSelectedTabChanged: { - PersistentStateManager.setState("sidebar.bottomGroup.selectedTab", selectedTab) - } - Behavior on implicitHeight { NumberAnimation { duration: Appearance.animation.elementMove.duration