Skip to content
Permalink
Browse files

check if the recentProjects file exists

  • Loading branch information
InventivetalentDev committed Mar 30, 2019
1 parent 4d9c554 commit 08de296517f5cc355f7899ab5040d0c60cffe377
Showing with 6 additions and 2 deletions.
  1. +6 −2 main.js
@@ -261,7 +261,11 @@ function checkFileAssociation() {
}

function readRecentProjects() {
fs.readFile(path.join(app.getPath("userData"), "recentProjects.pbd"), function (err, data) {
let recentProjectFile = path.join(app.getPath("userData"), "recentProjects.pbd");
if (!fs.existsSync(recentProjectFile)) {
return;
}
fs.readFile(recentProjectFile, function (err, data) {
if (err) {
console.warn(err);
Sentry.captureException(err);
@@ -302,7 +306,7 @@ function readRecentProjects() {
}
updateJumpList();
})
})
});
}

function writeRecentProjects() {

0 comments on commit 08de296

Please sign in to comment.
You can’t perform that action at this time.