mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-27 23:41:22 -05:00
fix(ui): unset last opened project if it is removed
This commit is contained in:
@@ -333,6 +333,9 @@ async function remove (id, context) {
|
||||
currentProject = null
|
||||
}
|
||||
context.db.get('projects').remove({ id }).write()
|
||||
if (context.db.get('config.lastOpenProject').value() === id) {
|
||||
context.db.set('config.lastOpenProject', undefined).write()
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user