mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
remove persistent state for bottom sidebar group tabs (buggy)
This commit is contained in:
parent
b172020f5b
commit
834a684d6f
2 changed files with 1 additions and 6 deletions
|
|
@ -11,7 +11,6 @@ Singleton {
|
|||
property QtObject sidebar: QtObject {
|
||||
property QtObject bottomGroup: QtObject {
|
||||
property bool collapsed: false
|
||||
property int selectedTab: 0
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue