Fix highlight not set when logging in new account
This commit is contained in:
@@ -4,10 +4,8 @@ import QtQuick.Layouts 1.12
|
||||
HButton {
|
||||
id: tile
|
||||
|
||||
|
||||
signal activated()
|
||||
|
||||
|
||||
property HListView view: ListView.view
|
||||
property bool shouldBeCurrent: false
|
||||
|
||||
@@ -81,7 +79,7 @@ HButton {
|
||||
Timer {
|
||||
interval: 100
|
||||
repeat: true
|
||||
running: view.currentIndex == -1
|
||||
running: true
|
||||
// Component.onCompleted won't work for this
|
||||
onTriggered: if (shouldBeCurrent) view.currentIndex = model.index
|
||||
}
|
||||
|
Reference in New Issue
Block a user