summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/main.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-14 10:45:15 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-14 10:45:15 +0200
commit09fdfc2df0ae38afb6314d734afe2d3d00d57671 (patch)
treeb6ccc789236251c54a608497fd8bafc82861a840 /facetracknoir/main.cpp
parente72c2c3c239d075177c08b9d84eff4ad019f99b3 (diff)
wizard now works
Diffstat (limited to 'facetracknoir/main.cpp')
-rw-r--r--facetracknoir/main.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/facetracknoir/main.cpp b/facetracknoir/main.cpp
index 326b40ec..eff35c0b 100644
--- a/facetracknoir/main.cpp
+++ b/facetracknoir/main.cpp
@@ -2,6 +2,7 @@
# include <stdlib.h>
#endif
+#include "wizard.h"
#include "ui.h"
#include "opentrack/options.hpp"
using namespace options;
@@ -60,6 +61,17 @@ int main(int argc, char** argv)
QApplication::setAttribute(Qt::AA_X11InitThreads, true);
QApplication app(argc, argv);
+ {
+ QSettings s(OPENTRACK_ORG);
+ if (!s.contains("wizard-run-once"))
+ {
+ s.setValue("wizard-run-once", true);
+ auto w = std::make_shared<Wizard>();
+ w->show();
+ app.exec();
+ }
+ }
+
auto w = std::make_shared<MainWindow>();
w->show();