[gnome-maps/wip/mlundblad/drop-network-monitor: 10/12] 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: 10/12] headerBar: Don't disable buttons based on connectivity
- Date: Fri, 11 Mar 2022 21:03:09 +0000 (UTC)
commit 22e6e577a50363cffad6df2e1e3a601d8c9e39ef
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]