[gnome-maps/wip/mlundblad/toggle-scale-button: 2/3] mapView: Remove toggle scale method




commit e9186dd87b91b9d10540e85de31ab2e2cb513494
Author: Marcus Lundblad <ml dfupdate se>
Date:   Thu Apr 28 23:29:14 2022 +0200

    mapView: Remove toggle scale method
    
    Changing the toggle scale action to
    a boolean-value action bound to the
    gsetting, it is enough to listen to
    the gsetting's value change.

 src/mapView.js | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/src/mapView.js b/src/mapView.js
index d56cc157..ea84625c 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -474,12 +474,6 @@ var MapView = GObject.registerClass({
         this.emit("map-type-changed", mapType);
     }
 
-    toggleScale() {
-        let showScale = Application.settings.get('show-scale');
-
-        Application.settings.set('show-scale', !showScale);
-    }
-
     _onShowScaleChanged() {
         this._scale.visible = Application.settings.get('show-scale');
     }


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