Do not reuse QML account entry UI delegates.
Delegate recycling causes a bug when removing an account and then adding it back: the old, stale UI for the account is reused instead of a new one. In combination with 'alive' guard property on the UI for account entries, this results in the account entry becoming frozen in the old stale state. (Incorrect helath indicators, tokens that do not update and buttons that no longer respond anymore.)master
parent
438e341000
commit
567d9c3c97
|
@ -34,10 +34,7 @@ Kirigami.ScrollablePage {
|
||||||
ListView {
|
ListView {
|
||||||
id: mainList
|
id: mainList
|
||||||
model: accounts
|
model: accounts
|
||||||
delegate: Kirigami.DelegateRecycler {
|
delegate: mainListDelegate
|
||||||
width: parent ? parent.width : implicitWidth
|
|
||||||
sourceComponent: mainListDelegate
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
actions.main: Kirigami.Action {
|
actions.main: Kirigami.Action {
|
||||||
|
|
Loading…
Reference in New Issue