[baobab] Invert default flag when scanning from command line



commit 744ad2cb8b449f0a826050d7a4b5384fb3007e89
Author: Stefano Facchini <stefano facchini gmail com>
Date:   Thu Jun 25 19:59:16 2020 +0200

    Invert default flag when scanning from command line
    
    Better to keep our old behaviour as default, it's simpler and more useful.

 data/baobab.1               | 4 ++--
 src/baobab-application.vala | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/data/baobab.1 b/data/baobab.1
index 3bb7aac..3a46e94 100644
--- a/data/baobab.1
+++ b/data/baobab.1
@@ -21,8 +21,8 @@ also provided for any selected folder.
 .SH "OPTIONS"
 
 .TP
-\fB\-x\fR, \fB\-\-one\-file\-system\fR
-Skip directories on different file systems. Ignored if DIRECTORY is not specified.
+\fB\-a\fR, \fB\-\-all\-file\-systems\fR
+Do not skip directories on different file systems. Ignored if DIRECTORY is not specified.
 .TP
 \fB\-\-help\fR
 Show command line options.
diff --git a/src/baobab-application.vala b/src/baobab-application.vala
index a3e9048..32238ec 100644
--- a/src/baobab-application.vala
+++ b/src/baobab-application.vala
@@ -26,11 +26,11 @@ namespace Baobab {
 
         private Window window;
 
-        static bool one_file_system;
+        static bool all_file_systems;
 
         const OptionEntry[] option_entries = {
-            { "one-file-system", 'x', 0, OptionArg.NONE, ref one_file_system,
-              N_("Skip directories on different file systems. Ignored if DIRECTORY is not specified."), null 
},
+            { "all-file-systems", 'a', 0, OptionArg.NONE, ref all_file_systems,
+              N_("Do not skip directories on different file systems. Ignored if DIRECTORY is not 
specified."), null },
             { "version", 'v', 0, OptionArg.NONE, null, N_("Print version information and exit"), null },
             { null }
         };
@@ -47,7 +47,7 @@ namespace Baobab {
         protected override void open (File[] files, string hint) {
             ensure_window ();
 
-            var scan_flags = one_file_system ? ScanFlags.EXCLUDE_MOUNTS : ScanFlags.NONE;
+            var scan_flags = all_file_systems ? ScanFlags.NONE : ScanFlags.EXCLUDE_MOUNTS;
             window.scan_directory (files[0], scan_flags);
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]