mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Do not add 'empty' projects to history/menu
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user