From 6b64800ed70464bdf0eaf3cb09f16b6930b63d4c Mon Sep 17 00:00:00 2001 From: miruka Date: Wed, 21 Aug 2019 17:51:44 -0400 Subject: [PATCH] Fix highlight not set when logging in new account --- TODO.md | 3 --- src/qml/Base/HTileDelegate.qml | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/TODO.md b/TODO.md index d19ff7d8..15eb3908 100644 --- a/TODO.md +++ b/TODO.md @@ -18,9 +18,6 @@ - When qml syntax highlighting supports ES6 string interpolation, use them - Fixes - - Button loading icon with only text - - Highlight when adding new account - - Restore previous focus after closing right click context menu - Reloading config files (cache) diff --git a/src/qml/Base/HTileDelegate.qml b/src/qml/Base/HTileDelegate.qml index d0c37398..16c5ee57 100644 --- a/src/qml/Base/HTileDelegate.qml +++ b/src/qml/Base/HTileDelegate.qml @@ -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 }