[gnome-maps/wip/mlundblad/drop-network-monitor: 4/6] headerBar: Don't disable buttons based on connectivity
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/drop-network-monitor: 4/6] headerBar: Don't disable buttons based on connectivity
- Date: Wed, 9 Mar 2022 21:00:20 +0000 (UTC)
commit 0cbb04c0683230e61e4fd196572cd6235f020109
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]