misc: configurator: Delete old .board.xml after reselect a new one
Delete old .board.xml after reselect a new one so that there will be
only one working .board.xml in working directory
@@ -132,6 +132,10 @@ export default {
let filepath = ''
if (useNewFile) {
filepath = this.newFilePath
+ if (filepath != this.currentSelectedBoard) {
+ configurator.removeFile(this.currentSelectedBoard)
+ .catch((err) => alert(`${err}`))
+ }
} else {
filepath = this.currentSelectedBoard
}
