mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 17:03:58 +02:00
fix tapping menu when already at the top-level menu blanks the tablet
This commit is contained in:
parent
0cc317d13b
commit
965f9ab0a7
1 changed files with 5 additions and 2 deletions
|
@ -78,8 +78,11 @@ Item {
|
|||
hoverEnabled: true
|
||||
onEntered: breadcrumbText.color = "#1fc6a6";
|
||||
onExited: breadcrumbText.color = "#ffffff";
|
||||
// navigate back to parent level menu
|
||||
onClicked: menuPopperUpper.closeLastMenu();
|
||||
// navigate back to parent level menu if there is one
|
||||
onClicked:
|
||||
if (breadcrumbText.text !== "Menu") {
|
||||
menuPopperUpper.closeLastMenu();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue