Fix highlight not set when logging in new account
This commit is contained in:
parent
b8d43ecfec
commit
6b64800ed7
3
TODO.md
3
TODO.md
|
@ -18,9 +18,6 @@
|
||||||
- When qml syntax highlighting supports ES6 string interpolation, use them
|
- When qml syntax highlighting supports ES6 string interpolation, use them
|
||||||
|
|
||||||
- Fixes
|
- Fixes
|
||||||
- Button loading icon with only text
|
|
||||||
- Highlight when adding new account
|
|
||||||
|
|
||||||
- Restore previous focus after closing right click context menu
|
- Restore previous focus after closing right click context menu
|
||||||
|
|
||||||
- Reloading config files (cache)
|
- Reloading config files (cache)
|
||||||
|
|
|
@ -4,10 +4,8 @@ import QtQuick.Layouts 1.12
|
||||||
HButton {
|
HButton {
|
||||||
id: tile
|
id: tile
|
||||||
|
|
||||||
|
|
||||||
signal activated()
|
signal activated()
|
||||||
|
|
||||||
|
|
||||||
property HListView view: ListView.view
|
property HListView view: ListView.view
|
||||||
property bool shouldBeCurrent: false
|
property bool shouldBeCurrent: false
|
||||||
|
|
||||||
|
@ -81,7 +79,7 @@ HButton {
|
||||||
Timer {
|
Timer {
|
||||||
interval: 100
|
interval: 100
|
||||||
repeat: true
|
repeat: true
|
||||||
running: view.currentIndex == -1
|
running: true
|
||||||
// Component.onCompleted won't work for this
|
// Component.onCompleted won't work for this
|
||||||
onTriggered: if (shouldBeCurrent) view.currentIndex = model.index
|
onTriggered: if (shouldBeCurrent) view.currentIndex = model.index
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user