Skip to content

Commit

Permalink
npe
Browse files Browse the repository at this point in the history
  • Loading branch information
steam0r committed Sep 3, 2024
1 parent e095b98 commit b6f38a9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/electron/electron_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -1192,11 +1192,14 @@ class ElectronApi
{
const now = Date.now();
const project = settings.getCurrentProject();
const projectFile = settings.getCurrentProjectFile();
project.updated = now;
if (projectFile)
if (project)
{
projectsUtil.writeProjectToFile(projectFile, project);
const projectFile = settings.getCurrentProjectFile();
project.updated = now;
if (projectFile)
{
projectsUtil.writeProjectToFile(projectFile, project);
}
}
return this.success("OK", project);
}
Expand Down

0 comments on commit b6f38a9

Please sign in to comment.