From 8e97a20fa02b8d813bd9ef22adbbc8ebee075665 Mon Sep 17 00:00:00 2001 From: reionwong Date: Fri, 18 Jun 2021 13:45:15 +0800 Subject: [PATCH] Fix the curentIndex of appmenu --- qml/main.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qml/main.qml b/qml/main.qml index b3041c5..205e462 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -129,6 +129,12 @@ Item { model: appMenuModel + // Initialize the current index + onVisibleChanged: { + if (!visible) + appMenuView.currentIndex = -1 + } + delegate: StandardItem { id: _menuItem width: _actionText.width + FishUI.Units.largeSpacing