[gnome-maps/wip/mlundblad/aerial-hybrid: 1/5] mainWindow: Add action for toggling hybrid aerial layer



commit 6b1ffd90b59c21627022bddd2757e7139b507524
Author: Marcus Lundblad <ml update uu se>
Date:   Fri Jun 19 23:48:27 2020 +0200

    mainWindow: Add action for toggling hybrid aerial layer

 src/mainWindow.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index dfb60b16..10830667 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -195,6 +195,10 @@ var MainWindow = GObject.registerClass({
                 accels: ['<Primary>2', '<Primary>KP_2'],
                 onActivate: () => this._onAerialViewActivate()
             },
+            'hybrid-aerial': {
+                paramType:     'b',
+                setting:       'hybrid-aerial'
+            },
             'goto-user-location': {
                 accels: ['<Primary>L'],
                 onActivate: () => this._onGotoUserLocationActivate()
@@ -235,7 +239,7 @@ var MainWindow = GObject.registerClass({
             'export-as-image': {
                 onActivate: () => this._onExportActivated()
             }
-        });
+        }, Application.settings);
     }
 
     _initSignals() {


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