Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
AtomicSponge committed Jun 25, 2024
1 parent fca9e9e commit 888aae2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -459,12 +459,9 @@ const buildMenu = ():Menu => {
* @param item Menu item calling the run
*/
const CommandRunner = (execCmd:string, item:TrayCommand):void => {
const cmdCwd = (() => {
return (fs.existsSync(item.cwd)) ? item.cwd : process.cwd()
})()
const execOpts = {
encoding: appSettings.encoding,
cwd: cmdCwd,
cwd: (fs.existsSync(item.cwd)) ? item.cwd : process.cwd(),
windowsHide: true
}
const startDate = new Date().toLocaleString(__locale, { timeZoneName: 'short' })
Expand Down

0 comments on commit 888aae2

Please sign in to comment.