mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-03 20:59:53 +00:00
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 Tracked-On: #7597 Signed-off-by: Calvin Zhang <calvinzhang.cool@gmail.com>
This commit is contained in:
parent
4cd762f567
commit
1b9328c76f
@ -132,6 +132,10 @@ export default {
|
|||||||
let filepath = ''
|
let filepath = ''
|
||||||
if (useNewFile) {
|
if (useNewFile) {
|
||||||
filepath = this.newFilePath
|
filepath = this.newFilePath
|
||||||
|
if (filepath != this.currentSelectedBoard) {
|
||||||
|
configurator.removeFile(this.currentSelectedBoard)
|
||||||
|
.catch((err) => alert(`${err}`))
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
filepath = this.currentSelectedBoard
|
filepath = this.currentSelectedBoard
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user