File Logger
This commit is contained in:
@@ -80,7 +80,7 @@
|
||||
worker.progress = 0
|
||||
// var worker = new Worker(fileUrl('src/renderer/utils/worker.js'))
|
||||
this.worker = worker
|
||||
worker.postMessage(['scanapt', this.$store.state.Settings.settings.flightgearDirectory_apt])
|
||||
worker.postMessage(['scanapt', this.$store.state.Settings.settings.flightgearDirectory_apt, this.$store.state.Settings.settings.scanLogging])
|
||||
this.pollData()
|
||||
// the reply
|
||||
var store = this.$store
|
||||
@@ -127,7 +127,7 @@
|
||||
worker.progress = 0
|
||||
|
||||
this.worker = worker
|
||||
worker.postMessage(['scan', this.$store.state.Settings.settings.airportsDirectory])
|
||||
worker.postMessage(['scan', this.$store.state.Settings.settings.airportsDirectory, this.$store.state.Settings.settings.scanLogging])
|
||||
this.pollData()
|
||||
// the reply
|
||||
var store = this.$store
|
||||
@@ -174,7 +174,7 @@
|
||||
worker.max = this.max
|
||||
worker.progress = this.progress
|
||||
this.worker = worker
|
||||
worker.postMessage(['scanai', this.$store.state.Settings.settings.flightgearDirectory_traffic])
|
||||
worker.postMessage(['scanai', this.$store.state.Settings.settings.flightgearDirectory_traffic, this.$store.state.Settings.settings.scanLogging])
|
||||
this.pollData()
|
||||
// the reply
|
||||
var store = this.$store
|
||||
|
||||
@@ -82,6 +82,22 @@
|
||||
</el-popover>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="7">
|
||||
<span class="label">Scan logging :</span>
|
||||
</el-col>
|
||||
<el-col :span="15">
|
||||
<el-popover
|
||||
placement="top-start"
|
||||
title="Logging"
|
||||
width="200"
|
||||
trigger="hover"
|
||||
content="Switch on logging for scan. Big performance hit"
|
||||
>
|
||||
<el-switch v-model="scanLogging" slot="reference"></el-switch>
|
||||
</el-popover>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="7" class="label"></el-col>
|
||||
<el-col :span="17">
|
||||
@@ -184,6 +200,16 @@
|
||||
},
|
||||
test_directory: function () {
|
||||
return this.$store.state.Settings.settings.testDirectory
|
||||
},
|
||||
scanLogging: {
|
||||
// getter
|
||||
get: function () {
|
||||
return this.$store.state.Settings.settings.scanLogging === 1
|
||||
},
|
||||
// setter
|
||||
set: function (newValue) {
|
||||
this.$store.commit('SET_SCAN_LOGGING', newValue ? 1 : 0)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user