diff --git a/QHotkey b/QHotkey index 7c4ef6a..9eace8f 160000 --- a/QHotkey +++ b/QHotkey @@ -1 +1 @@ -Subproject commit 7c4ef6a03a219c99932975bab270ea812589e1ad +Subproject commit 9eace8fbbd8dede95db623eea5e25403fd59b490 diff --git a/main.cpp b/main.cpp index 718d139..cb36d38 100644 --- a/main.cpp +++ b/main.cpp @@ -46,9 +46,6 @@ int main(int argc, char *argv[]) { verbose = parser.isSet(v); MainWindow w; - w.show(); - QTimer::singleShot(0, [&] { - if (parser.isSet(h)) w.hide(); - }); + if (!parser.isSet(h)) w.show(); return a.exec(); }