mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
Merge pull request #14606 from wayne-chen/fixFileLoginMenuButton
MS#20355: HMD persisting extra login windows
This commit is contained in:
commit
f51bdead20
1 changed files with 6 additions and 1 deletions
|
@ -95,7 +95,12 @@ void LoginDialog::toggleAction() {
|
||||||
} else {
|
} else {
|
||||||
// change the menu item to login
|
// change the menu item to login
|
||||||
loginAction->setText("Log In / Sign Up");
|
loginAction->setText("Log In / Sign Up");
|
||||||
connection = connect(loginAction, &QAction::triggered, [] { LoginDialog::showWithSelection(); });
|
connection = connect(loginAction, &QAction::triggered, [] {
|
||||||
|
// if not in login state, show.
|
||||||
|
if (!qApp->getLoginDialogPoppedUp()) {
|
||||||
|
LoginDialog::showWithSelection();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue