Don't try to highlight first item on menu open()

It's imprevisible where the menu is gonna open and this which item is
gonna be under the mouse cursor. Also to match the behavior of other
programs.
This commit is contained in:
miruka 2020-07-10 03:39:19 -04:00
parent e2bc0cbd84
commit 2cf7b91829

View File

@ -51,7 +51,6 @@ Menu {
onOpened: {
window.visibleMenus[uuid] = this
window.visibleMenusChanged()
menu.currentIndex = 0
}
onClosed: {
if (focusOnClosed) focusOnClosed.forceActiveFocus()