diff main/main.cpp @ 459:f8f74f1b5b4f toggle

Start in minimal mode option added in the Preferences/Appearance menu
author mathieub <mathieu.barthet@eecs.qmul.ac.uk>
date Mon, 04 Jul 2011 16:08:20 +0100
parents 868f73825b37
children 33d0632255b5
line wrap: on
line diff
--- a/main/main.cpp	Mon Jul 04 13:06:02 2011 +0100
+++ b/main/main.cpp	Mon Jul 04 16:08:20 2011 +0100
@@ -351,6 +351,16 @@
     }
     settings.endGroup();
     
+    settings.beginGroup("Preferences");
+    bool mini = settings.value("start-in-mini-mode",true).toBool();
+
+    //std::cerr << "Minimal mode at startup (true/false): " << mini << std::endl;
+
+    if (mini) {
+        gui->toggleViewMode();
+    }
+    settings.endGroup();
+
     gui->show();
 
     // The MainWindow class seems to have trouble dealing with this if