[gnome-maps/wip/mlundblad/drop-network-monitor: 8/9] application: Remove --force-online option




commit 769e0de45c838fdeb25d4c4b4814da26b815a2ba
Author: Marcus Lundblad <ml dfupdate se>
Date:   Wed Mar 9 21:40:18 2022 +0100

    application: Remove --force-online option
    
    Remove the --force-online CLI options, as
    the network monitor connectivity check will
    be removed.

 src/application.js | 10 ----------
 1 file changed, 10 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 0e2e65e5..da9134b4 100644
--- a/src/application.js
+++ b/src/application.js
@@ -119,13 +119,6 @@ var Application = GObject.registerClass({
         this.add_main_option('version', 'v'.charCodeAt(0), GLib.OptionFlags.NONE, GLib.OptionArg.NONE,
                              _("Show the version of the program"), null);
 
-        this.add_main_option('force-online',
-                             0,
-                             GLib.OptionFlags.NONE,
-                             GLib.OptionArg.NONE,
-                             _("Ignore network availability"),
-                             null);
-
         this.add_main_option('search',
                              'S'.charCodeAt(0),
                              GLib.OptionFlags.NONE,
@@ -147,7 +140,6 @@ var Application = GObject.registerClass({
 
     _checkNetwork() {
         this.connected =
-            this._forceOnline ||
             networkMonitor.connectivity === Gio.NetworkConnectivity.FULL;
     }
 
@@ -446,8 +438,6 @@ var Application = GObject.registerClass({
              * leaving the running instance unaffected
              */
             return 0;
-        } else if (options.contains('force-online')) {
-            this._forceOnline = true;
         }
 
         let remaining = options.lookup(GLib.OPTION_REMAINING, null);


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