diff --git a/source/plugins/projects/projects/index.js b/source/plugins/projects/projects/index.js index 3a86b2d3..781fa204 100644 --- a/source/plugins/projects/projects/index.js +++ b/source/plugins/projects/projects/index.js @@ -1202,13 +1202,18 @@ let projects = { let project = studio.settings.loadValue('projects', 'currentProject', null); let file = studio.settings.loadValue('projects', 'currentFile', null); - if (project !== {} && project !== null) { - if(await this.selectCurrentProject(project, false)) { - if (file !== {} && file !== null) { - await this.changeFile(project,file); - } - } - + if (project !== null) { + if(await studio.filesystem.pathExists(project.folder)) { + if(await this.selectCurrentProject(project, false)) { + if (file !== null) { + await this.changeFile(project,file); + } + } + } else { + studio.workspace.showDialog(ProjectsLibrary, {width: 1000}); + } + } else if(!studio.settings.loadValue('firstrun', 'firstRun', true)) { + studio.workspace.showDialog(ProjectsLibrary, {width: 1000}); } },