[gnome-maps/wip/mlundblad/drop-network-monitor: 7/9] 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: 7/9] headerBar: Don't disable buttons based on connectivity
- Date: Sat, 2 Apr 2022 22:14:35 +0000 (UTC)
commit 3da76e1a8ecfc2aa74cab694f5991c94e9c9b8c2
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]