From ebc2772b3ef54e9f93865ad5c497665b9fffe1cd Mon Sep 17 00:00:00 2001 From: ATMDA Date: Fri, 14 Nov 2025 13:44:15 -0500 Subject: controlcenter: corrected index of panes --- modules/controlcenter/Panes.qml | 25 +++++-------------------- modules/controlcenter/Session.qml | 4 ++-- 2 files changed, 7 insertions(+), 22 deletions(-) (limited to 'modules/controlcenter') diff --git a/modules/controlcenter/Panes.qml b/modules/controlcenter/Panes.qml index 0958902..8a46088 100644 --- a/modules/controlcenter/Panes.qml +++ b/modules/controlcenter/Panes.qml @@ -1,6 +1,5 @@ pragma ComponentBehavior: Bound -import "ethernet" import "bluetooth" import "network" import "audio" @@ -29,60 +28,46 @@ ClippingRectangle { Pane { index: 0 - sourceComponent: EthernetPane { + sourceComponent: NetworkingPane { session: root.session } } Pane { index: 1 - sourceComponent: WirelessPane { - session: root.session - } - } - - Pane { - index: 2 sourceComponent: BtPane { session: root.session } } Pane { - index: 3 + index: 2 sourceComponent: AudioPane { session: root.session } } Pane { - index: 4 + index: 3 sourceComponent: AppearancePane { session: root.session } } Pane { - index: 5 + index: 4 sourceComponent: TaskbarPane { session: root.session } } Pane { - index: 6 + index: 5 sourceComponent: LauncherPane { session: root.session } } - Pane { - index: 7 - sourceComponent: NetworkingPane { - session: root.session - } - } - Behavior on y { Anim {} } diff --git a/modules/controlcenter/Session.qml b/modules/controlcenter/Session.qml index d09d977..0aad702 100644 --- a/modules/controlcenter/Session.qml +++ b/modules/controlcenter/Session.qml @@ -2,12 +2,12 @@ import Quickshell.Bluetooth import QtQuick QtObject { - readonly property list panes: ["ethernet", "wireless", "bluetooth", "audio", "appearance", "taskbar", "launcher", "networking"] + readonly property list panes: ["networking", "bluetooth", "audio", "appearance", "taskbar", "launcher"] required property var root property bool floating: false property string active: "networking" - property int activeIndex: 7 + property int activeIndex: 0 property bool navExpanded: false readonly property Bt bt: Bt {} -- cgit v1.2.3-freya