summaryrefslogtreecommitdiff
path: root/modules/dashboard/Content.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-05 16:52:33 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-05 16:52:33 +1000
commitb8a22eaa28f5ce936d17d38043c9cf00fdf95b07 (patch)
tree43d49f9fb4e6a4620b5c980c63b1b10f5639be7c /modules/dashboard/Content.qml
parentdashboard: media player selector elide text (diff)
downloadcaelestia-shell-b8a22eaa28f5ce936d17d38043c9cf00fdf95b07.tar.gz
caelestia-shell-b8a22eaa28f5ce936d17d38043c9cf00fdf95b07.tar.bz2
caelestia-shell-b8a22eaa28f5ce936d17d38043c9cf00fdf95b07.zip
dashboard: dont update pane if not current
Diffstat (limited to 'modules/dashboard/Content.qml')
-rw-r--r--modules/dashboard/Content.qml12
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/dashboard/Content.qml b/modules/dashboard/Content.qml
index 5b88f9b..bd613e7 100644
--- a/modules/dashboard/Content.qml
+++ b/modules/dashboard/Content.qml
@@ -51,17 +51,25 @@ Item {
currentIndex: tabs.currentIndex
ClippingWrapperRectangle {
+ id: dash
+
radius: Appearance.rounding.normal
color: "transparent"
- Dash {}
+ Dash {
+ shouldUpdate: visible && dash.ListView.isCurrentItem
+ }
}
ClippingWrapperRectangle {
+ id: media
+
radius: Appearance.rounding.normal
color: "transparent"
- Media {}
+ Media {
+ shouldUpdate: visible && media.ListView.isCurrentItem
+ }
}
ClippingWrapperRectangle {