mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 04:44:32 +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, [&](){
|
connect(this, &Application::activeDisplayPluginChanged, this, [&](){
|
||||||
auto dialogsManager = DependencyManager::get<DialogsManager>();
|
auto dialogsManager = DependencyManager::get<DialogsManager>();
|
||||||
if (getLoginDialogPoppedUp()) {
|
if (getLoginDialogPoppedUp()) {
|
||||||
|
if (_firstRun.get()) {
|
||||||
|
// display mode changed. Don't allow auto-switch to work after this session.
|
||||||
|
_firstRun.set(false);
|
||||||
|
}
|
||||||
if (_loginDialogOverlayID.isNull()) {
|
if (_loginDialogOverlayID.isNull()) {
|
||||||
// HMD mode.
|
// HMD mode.
|
||||||
dialogsManager->hideLoginDialog();
|
dialogsManager->hideLoginDialog();
|
||||||
|
|
Loading…
Reference in a new issue