don't call showFullScreen if numscreens == 1 (not even sure why showFullScreen would have to be called here...)

preferencesAboutTextFull
Clément Fauconnier 3 years ago
parent 5a8b0a1117
commit b43ffa4609
  1. 2
      src/core/UBDisplayManager.cpp

@ -180,7 +180,7 @@ void UBDisplayManager::setDisplayWidget(QWidget* pDisplayWidget)
} }
mDisplayWidget = pDisplayWidget; mDisplayWidget = pDisplayWidget;
mDisplayWidget->setGeometry(mDesktop->screenGeometry(mDisplayScreenIndex)); mDisplayWidget->setGeometry(mDesktop->screenGeometry(mDisplayScreenIndex));
if (UBSettings::settings()->appUseMultiscreen->get().toBool()) if (numScreens() > 1 && UBSettings::settings()->appUseMultiscreen->get().toBool())
UBPlatformUtils::showFullScreen(mDisplayWidget); UBPlatformUtils::showFullScreen(mDisplayWidget);
} }
} }

Loading…
Cancel
Save