Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
AtomicSponge committed May 27, 2024
1 parent 4072b90 commit 5978b0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ ipcMain.on('reset-settings-data', (_event, data) => {
}
})

/** Event handler for verifying a current working directory */
ipcMain.on('verify-cwd', (_event, data) => {
/**
* Dialog box for the CWD verification
Expand All @@ -206,7 +207,7 @@ ipcMain.on('verify-cwd', (_event, data) => {
const stats = fs.lstatSync(data)
stats.isDirectory() ?
verifyDialog(`Path "${data}" exists.`, `info`) :
verifyDialog(`Path "${data}" does not exist!`, `warning`)
verifyDialog(`"${data}" is not a directory!`, `warning`)
} catch (error:any) {
verifyDialog(`Path "${data}" does not exist!`, `warning`)
}
Expand Down

0 comments on commit 5978b0d

Please sign in to comment.