Desktop mode: don't display on 2nd screen if multiscreen mode is deactivated

preferencesAboutTextFull
Craig Watson 8 years ago
parent 2263c46d50
commit 334839d2d7
  1. 7
      src/core/UBApplicationController.cpp
  2. 2
      src/core/UBDisplayManager.cpp

@ -721,6 +721,13 @@ void UBApplicationController::importFile(const QString& pFilePath)
void UBApplicationController::useMultiScreen(bool use)
{
if (use && !mMirror)
mMirror = new UBScreenMirror();
if (!use && mMirror) {
delete mMirror;
mMirror = NULL;
}
mDisplayManager->setUseMultiScreen(use);
mDisplayManager->adjustScreens(0);
UBSettings::settings()->appUseMultiscreen->set(use);

@ -55,7 +55,7 @@ UBDisplayManager::UBDisplayManager(QObject *parent)
{
mDesktop = qApp->desktop();
mUseMultiScreen = true;
mUseMultiScreen = UBSettings::settings()->appUseMultiscreen->get().toBool();
initScreenIndexes();

Loading…
Cancel
Save