From a88d3436cc6b2c24ab05400a5ad5e9e67cb95db8 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Thu, 28 Jan 2021 19:05:05 +0100 Subject: Implementation --pick argument. --- src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 0cd9ba26..60d99817 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -80,6 +80,8 @@ int run(int argc, char *argv[]) // stuff that's done only once, even if MO restarts in the loop below app.firstTimeSetup(multiProcess); + // force the "Select instance" dialog on startup (only for first loop) + bool pick = cl.pick(); // MO runs in a loop because it can be restarted in several ways, such as // when switching instances or changing some settings @@ -100,7 +102,8 @@ int run(int argc, char *argv[]) // set up plugins, OrganizerCore, etc. { - const auto r = app.setup(multiProcess); + const auto r = app.setup(multiProcess, pick); + pick = false; if (r == RestartExitCode) { // resets things when MO is "restarted" -- cgit v1.3.1