Skip to content

Commit

Permalink
fix(media-folder): The Electron update introduced a breaking change f…
Browse files Browse the repository at this point in the history
…or openItem which is now called openPath. (#557)
  • Loading branch information
TimPietrusky authored Feb 23, 2021
1 parent 2193f22 commit deafe7f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,13 @@ function generateMenuTemplate() {
{ type: "separator" },
{
label: "Open Media folder",
click() {
async click() {
if (mm.mediaDirectoryPath) {
shell.openItem(mm.mediaDirectoryPath);
const failed = await shell.openPath(mm.mediaDirectoryPath);

if (failed) {
console.error(failed);
}
}
}
},
Expand Down

0 comments on commit deafe7f

Please sign in to comment.