Do not add 'empty' projects to history/menu

This commit is contained in:
Damien Guard
2016-12-06 14:06:09 -08:00
parent 66d7503e69
commit 9aa53f32f6

View File

@@ -47,6 +47,8 @@ export class HistoryManager {
}
addProject (paths, lastOpened) {
if (paths.length == 0) return
let project = this.getProject(paths)
if (!project) {
project = new HistoryProject(paths)