Keep focus on collection window when --list option is used
authorColin Clark <colin.clark@cclark.uk>
Sun, 18 Apr 2021 09:26:36 +0000 (10:26 +0100)
committerColin Clark <colin.clark@cclark.uk>
Sun, 18 Apr 2021 09:26:36 +0000 (10:26 +0100)
When the command line option --list is used, do not select files in the
files pane. The focus then stays on images in the collection window.

src/main.c

index b75d4b5..fbf8f2d 100644 (file)
@@ -1177,11 +1177,12 @@ gint main(gint argc, gchar *argv[])
                }
 
        /* If the files on the command line are from one folder, select those files
+        * unless it is a command line collection - then leave focus on collection window
         */
        lw = NULL;
        layout_valid(&lw);
 
-       if (single_dir && command_line->cmd_list)
+       if (single_dir && command_line->cmd_list && !command_line->startup_command_line_collection)
                {
                GList *work;
                GList *selected;