diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-03 18:58:32 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-03 18:58:32 +1000 |
| commit | d034f31624560d7acb54a0fb913e2cc1632e18a1 (patch) | |
| tree | 748bb300b1bd176d30636cea1cb95a6fd0f07383 /components/filedialog/CurrentItem.qml | |
| parent | internal: refactor Paths util (diff) | |
| download | caelestia-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.qml | 9 |
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); + } + } } } |