mirror of
https://github.com/overte-org/overte.git
synced 2025-08-03 22:43:15 +02:00
dont allow auto-switch after display mode change
This commit is contained in:
parent
7375840eda
commit
76f33ff853
1 changed files with 4 additions and 0 deletions
|
@ -1298,6 +1298,10 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
|
|||
connect(this, &Application::activeDisplayPluginChanged, this, [&](){
|
||||
auto dialogsManager = DependencyManager::get<DialogsManager>();
|
||||
if (getLoginDialogPoppedUp()) {
|
||||
if (_firstRun.get()) {
|
||||
// display mode changed. Don't allow auto-switch to work after this session.
|
||||
_firstRun.set(false);
|
||||
}
|
||||
if (_loginDialogOverlayID.isNull()) {
|
||||
// HMD mode.
|
||||
dialogsManager->hideLoginDialog();
|
||||
|
|
Loading…
Reference in a new issue