remove persistent state for bottom sidebar group tabs (buggy)

This commit is contained in:
end-4 2025-06-01 10:10:57 +02:00
parent b172020f5b
commit 834a684d6f
2 changed files with 1 additions and 6 deletions

View file

@ -11,7 +11,6 @@ Singleton {
property QtObject sidebar: QtObject {
property QtObject bottomGroup: QtObject {
property bool collapsed: false
property int selectedTab: 0
}
}

View file

@ -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