Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Fixed a fatal error on non-Windows platforms when attempting to set j…
Browse files Browse the repository at this point in the history
…umplist tasks
  • Loading branch information
ZudoB committed Feb 13, 2019
1 parent 4e207e6 commit 049e42d
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/main/install/InstallList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,18 @@ export default class InstallList {
}
}

app.setUserTasks(returned.map((install: Install) => {
return {
program: process.execPath,
arguments: "ddmm://launch-install/" + install.folderName,
iconPath: process.execPath,
iconIndex: 0,
title: install.name,
description: lang.translate("main.jumplist.task_launch", install.name)
};
}));
if (process.platform === "win32") {
app.setUserTasks(returned.map((install: Install) => {
return {
program: process.execPath,
arguments: "ddmm://launch-install/" + install.folderName,
iconPath: process.execPath,
iconIndex: 0,
title: install.name,
description: lang.translate("main.jumplist.task_launch", install.name)
};
}));
}

return returned;
}
Expand Down

0 comments on commit 049e42d

Please sign in to comment.