mirror of
https://github.com/overte-org/overte.git
synced 2025-04-24 03:13:32 +02:00
Check if dialog was opened from StackView and then pop or just go to home menu
This commit is contained in:
parent
aa89903a9f
commit
7628916db6
1 changed files with 5 additions and 1 deletions
|
@ -66,7 +66,11 @@ TabletModalWindow {
|
|||
HifiConstants { id: hifi }
|
||||
|
||||
onCanceled: {
|
||||
loginDialogRoot.Stack.view.pop()
|
||||
if (loginDialogRoot.Stack.view !== null) {
|
||||
loginDialogRoot.Stack.view.pop()
|
||||
} else {
|
||||
Tablet.getTablet("com.highfidelity.interface.tablet.system").gotoHomeScreen();
|
||||
}
|
||||
}
|
||||
|
||||
LoginDialog {
|
||||
|
|
Loading…
Reference in a new issue