diff main/main.cpp @ 466:33d0632255b5 integration_library

Merge with the Kiosk branch
author mathieub <mathieu.barthet@eecs.qmul.ac.uk>
date Mon, 25 Jul 2011 21:04:31 +0100
parents b3b9cc8f5466 f8f74f1b5b4f
children
line wrap: on
line diff
--- a/main/main.cpp	Mon Jul 25 19:38:50 2011 +0100
+++ b/main/main.cpp	Mon Jul 25 21:04:31 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