summaryrefslogtreecommitdiff
path: root/modules/controlcenter/Panes.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/controlcenter/Panes.qml')
-rw-r--r--modules/controlcenter/Panes.qml17
1 files changed, 7 insertions, 10 deletions
diff --git a/modules/controlcenter/Panes.qml b/modules/controlcenter/Panes.qml
index c239b91..03f74be 100644
--- a/modules/controlcenter/Panes.qml
+++ b/modules/controlcenter/Panes.qml
@@ -3,9 +3,6 @@ pragma ComponentBehavior: Bound
import "bluetooth"
import "network"
import "audio"
-import "appearance"
-import "taskbar"
-import "launcher"
import qs.components
import qs.services
import qs.config
@@ -103,7 +100,7 @@ ClippingRectangle {
implicitHeight: root.height
property bool hasBeenLoaded: false
-
+
function updateActive(): void {
const diff = Math.abs(root.session.activeIndex - pane.paneIndex);
const isActivePane = diff === 0;
@@ -130,37 +127,37 @@ ClippingRectangle {
anchors.fill: parent
clip: false
active: false
-
+
Component.onCompleted: {
Qt.callLater(pane.updateActive);
}
-
+
onActiveChanged: {
if (active && !pane.hasBeenLoaded) {
pane.hasBeenLoaded = true;
}
-
+
if (active && !item) {
loader.setSource(pane.componentPath, {
"session": root.session
});
}
}
-
+
onItemChanged: {
if (item) {
pane.hasBeenLoaded = true;
}
}
}
-
+
Connections {
target: root.session
function onActiveIndexChanged(): void {
pane.updateActive();
}
}
-
+
Connections {
target: layout
function onInitialOpeningCompleteChanged(): void {