[gnome-maps/wip/mlundblad/drop-network-monitor: 9/11] headerBar: Don't disable buttons based on connectivity




commit 44b32073de7bb6af2e7e7919fe9d5d7cee56709f
Author: Marcus Lundblad <ml dfupdate se>
Date:   Wed Mar 9 21:34:24 2022 +0100

    headerBar: Don't disable buttons based on connectivity
    
    Don't set sensitivity of the layers, favorites, print,
    and route buttons based on network monitor connection
    status.

 src/headerBar.js | 14 --------------
 1 file changed, 14 deletions(-)
---
diff --git a/src/headerBar.js b/src/headerBar.js
index fed6569c..cbd74274 100644
--- a/src/headerBar.js
+++ b/src/headerBar.js
@@ -44,11 +44,6 @@ var HeaderBarLeft = GObject.registerClass({
             mapView: this._mapView
         });
         this._layersButton.popover = this._layersPopover;
-
-        this._application.connect('notify::connected', () => {
-            let app = this._application;
-            this._layersButton.sensitive = app.connected;
-        });
     }
 
     popdownLayersPopover() {
@@ -82,14 +77,5 @@ var HeaderBarRight = GObject.registerClass({
 
         this._mapView.bind_property('routeShowing', this._printRouteButton,
                                     'visible', GObject.BindingFlags.DEFAULT);
-
-        this._application.connect('notify::connected', () => {
-            let app = this._application;
-
-            this._toggleSidebarButton.sensitive = app.connected;
-            this._favoritesButton.sensitive = (app.connected &&
-                                               favoritesPopover.rows > 0);
-            this._printRouteButton.sensitive = app.connected;
-        });
     }
 });


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