summaryrefslogtreecommitdiff
path: root/components/filedialog/CurrentItem.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-03 18:58:32 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-03 18:58:32 +1000
commitd034f31624560d7acb54a0fb913e2cc1632e18a1 (patch)
tree748bb300b1bd176d30636cea1cb95a6fd0f07383 /components/filedialog/CurrentItem.qml
parentinternal: refactor Paths util (diff)
downloadcaelestia-shell-d034f31624560d7acb54a0fb913e2cc1632e18a1.tar.gz
caelestia-shell-d034f31624560d7acb54a0fb913e2cc1632e18a1.tar.bz2
caelestia-shell-d034f31624560d7acb54a0fb913e2cc1632e18a1.zip
filedialog: fix anims
Assign to non reactive bindings so no update during remove anim when modelData is destroyed
Diffstat (limited to 'components/filedialog/CurrentItem.qml')
-rw-r--r--components/filedialog/CurrentItem.qml9
1 files changed, 8 insertions, 1 deletions
diff --git a/components/filedialog/CurrentItem.qml b/components/filedialog/CurrentItem.qml
index b051212..bb87133 100644
--- a/components/filedialog/CurrentItem.qml
+++ b/components/filedialog/CurrentItem.qml
@@ -79,7 +79,14 @@ Item {
anchors.rightMargin: Appearance.padding.larger - Appearance.padding.small
anchors.bottomMargin: Appearance.padding.normal - Appearance.padding.small
- text: qsTr(`"%1" selected`).arg(root.currentItem?.modelData.name)
+ Connections {
+ target: root
+
+ function onCurrentItemChanged(): void {
+ if (root.currentItem)
+ content.text = qsTr(`"%1" selected`).arg(root.currentItem.modelData.name);
+ }
+ }
}
}