summaryrefslogtreecommitdiff
path: root/modules/controlcenter/Panes.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2026-01-28 19:21:44 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2026-01-28 19:21:44 +1100
commit9d7f0c48cebec02aaf2ca780b89a763ce91f8624 (patch)
tree2345921b670f730268203020e754465503707ed3 /modules/controlcenter/Panes.qml
parentcontrolcenter: remove qt5compat dep (diff)
downloadcaelestia-shell-9d7f0c48cebec02aaf2ca780b89a763ce91f8624.tar.gz
caelestia-shell-9d7f0c48cebec02aaf2ca780b89a763ce91f8624.tar.bz2
caelestia-shell-9d7f0c48cebec02aaf2ca780b89a763ce91f8624.zip
internal: format
Diffstat (limited to 'modules/controlcenter/Panes.qml')
-rw-r--r--modules/controlcenter/Panes.qml16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/controlcenter/Panes.qml b/modules/controlcenter/Panes.qml
index c239b91..4a4460c 100644
--- a/modules/controlcenter/Panes.qml
+++ b/modules/controlcenter/Panes.qml
@@ -29,7 +29,7 @@ ClippingRectangle {
MouseArea {
anchors.fill: parent
z: -1
- onPressed: function(mouse) {
+ onPressed: function (mouse) {
root.focus = true;
mouse.accepted = false;
}
@@ -103,7 +103,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 +130,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 {