summary refs log tree commit diff
path: root/src/main.cc
diff options
context:
space:
mode:
authorAnton Karmanov <bergentroll@insiberia.net>2018-05-09 01:53:40 +0500
committermujx <mujx@users.noreply.github.com>2018-05-08 23:53:40 +0300
commit17896b1c82200aec05a7cd99b9694fb228ad04f0 (patch)
tree3d453b85949eaa1450c5b4e5f151b909df035efb /src/main.cc
parentHide SnackBar initially & guard against access of an empty list (diff)
downloadnheko-17896b1c82200aec05a7cd99b9694fb228ad04f0.tar.xz
Start in tray (#319)
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc

index 82073454..bd3a212c 100644 --- a/src/main.cc +++ b/src/main.cc
@@ -160,7 +160,10 @@ main(int argc, char *argv[]) // Move the MainWindow to the center w.move(screenCenter(w.width(), w.height())); - w.show(); + + if (!settings.value("user/window/start_in_tray", false).toBool() || + !settings.value("user/window/tray", true).toBool()) + w.show(); QObject::connect(&app, &QApplication::aboutToQuit, &w, &MainWindow::saveCurrentWindowSize);