added possibility to start in Document Mode

preferencesAboutTextFull
Clément Fauconnier 6 years ago
parent aee477ec48
commit 62a5ad33bd
  1. 7
      resources/forms/preferences.ui
  2. 8
      src/core/UBApplication.cpp

@ -82,7 +82,7 @@
<item row="1" column="0"> <item row="1" column="0">
<widget class="QTabWidget" name="mainTabWidget"> <widget class="QTabWidget" name="mainTabWidget">
<property name="currentIndex"> <property name="currentIndex">
<number>7</number> <number>0</number>
</property> </property>
<widget class="QWidget" name="displayTab"> <widget class="QWidget" name="displayTab">
<attribute name="title"> <attribute name="title">
@ -387,6 +387,11 @@
<string>Desktop</string> <string>Desktop</string>
</property> </property>
</item> </item>
<item>
<property name="text">
<string>Document</string>
</property>
</item>
</widget> </widget>
</item> </item>
<item row="0" column="2"> <item row="0" column="2">

@ -351,10 +351,12 @@ int UBApplication::exec(const QString& pFileToImport)
if (pFileToImport.length() > 0) if (pFileToImport.length() > 0)
UBApplication::applicationController->importFile(pFileToImport); UBApplication::applicationController->importFile(pFileToImport);
if (UBSettings::settings()->appStartMode->get().toInt()) if (UBSettings::settings()->appStartMode->get().toInt() == 0)
applicationController->showDesktop();
else
applicationController->showBoard(); applicationController->showBoard();
else if (UBSettings::settings()->appStartMode->get().toInt() == 1)
applicationController->showDesktop();
else if (UBSettings::settings()->appStartMode->get().toInt() == 2)
applicationController->showDocument();
emit UBDrawingController::drawingController()->colorPaletteChanged(); emit UBDrawingController::drawingController()->colorPaletteChanged();

Loading…
Cancel
Save