Remove App Version

This commit is contained in:
portree_kid 2020-05-16 10:46:17 +02:00
parent f9f9256ffe
commit 07042d92e7

View File

@ -80,7 +80,6 @@
})
},
data () {
var appVersion = require('electron').remote.app.getVersion()
return {
url: 'https://a.tile.openstreetmap.de/{z}/{x}/{y}.png',
attribution: ' &copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',
@ -167,15 +166,14 @@
}
},
async centerUpdated (center) {
if (center.lat !== this.$store.state.Settings.center[0] &&
center.lon !== this.$store.state.Settings.center[1]) {
if (center !== this.$store.state.Settings.center) {
this.$store.dispatch('setCenter', center)
this.$refs.airportLayer.setVisible(this.zoom < 12)
this.$refs.pavementLayer.setVisible(this.zoom < 12)
}
},
async boundsUpdated (bounds) {
if (!bounds.equals(this.$store.state.Settings.bounds)) {
if (bounds !== this.$store.state.Settings.bounds) {
this.$store.dispatch('setBounds', bounds)
this.$refs.airportLayer.setVisible(this.zoom < 12)
this.$refs.pavementLayer.setVisible(this.zoom < 12)