Otherwise after navigating to subfolders in the popup, changing the URL in configuration isn't immediately applied.
Details
- Reviewers
hein - Group Reviewers
Plasma - Commits
- R119:4fb4dbe80a84: [Folder View] Don't break FolderView url binding to configured URL when going…
Had FolderView in panel, opened subfolder from the popup, closed popup, it reverted back to home.
Now I changed the URL in its settings. Before it would not update it until I opened and closed the popup, with this patch it immediately updates.
Diff Detail
- Repository
- R119 Plasma Desktop
- Lint
Lint Skipped - Unit
Unit Tests Skipped
So binding to a function returning that prop means when the config prop notifies the function is rerun and the value updated, right? Sounds good.
So binding to a function returning that prop means when the config prop notifies the function is rerun and the value updated, right?
Yes, it behaves as if I had written url: foo in the markup. When using JavaScript, explicitly assigning a value breaks the binding and the value is fixed to the value at the time of assignment. Qt.binding(…) imperatively establishes a binding, when you access the property you get the value back as normal but it updates when its dependants change like any other property
See https://doc.qt.io/qt-5/qtqml-syntax-propertybinding.html#creating-property-bindings-from-javascript