summaryrefslogtreecommitdiffhomepage
path: root/gui/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/main.cpp')
-rw-r--r--gui/main.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/gui/main.cpp b/gui/main.cpp
index 3220f31d..f8d27da7 100644
--- a/gui/main.cpp
+++ b/gui/main.cpp
@@ -130,9 +130,15 @@ int main(int argc, char** argv)
MainWindow::set_working_directory();
- auto w = std::make_shared<MainWindow>();
+ mem<MainWindow> w = std::make_shared<MainWindow>();
- w->show();
+ if (!w->is_tray_enabled())
+ w->show();
+ else
+ {
+ w->setVisible(false);
+ w->setHidden(true);
+ }
app.exec();
// on MSVC crashes in atexit