parent
718967533d
commit
46560cdeae
1 changed files with 12 additions and 2 deletions
|
@ -948,13 +948,23 @@ export class BrowserWindow {
|
||||||
switch (path) {
|
switch (path) {
|
||||||
default:
|
default:
|
||||||
case "plugins":
|
case "plugins":
|
||||||
shell.openPath(utils.getPath("plugins"));
|
if (existsSync(utils.getPath("plugins"))) {
|
||||||
|
shell.openPath(utils.getPath("plugins"));
|
||||||
|
} else {
|
||||||
|
mkdirSync(utils.getPath("plugins"));
|
||||||
|
shell.openPath(utils.getPath("plugins"));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case "userdata":
|
case "userdata":
|
||||||
shell.openPath(app.getPath("userData"));
|
shell.openPath(app.getPath("userData"));
|
||||||
break;
|
break;
|
||||||
case "themes":
|
case "themes":
|
||||||
shell.openPath(utils.getPath("themes"));
|
if (existsSync(utils.getPath("themes"))) {
|
||||||
|
shell.openPath(utils.getPath("themes"));
|
||||||
|
} else {
|
||||||
|
mkdirSync(utils.getPath("themes"));
|
||||||
|
shell.openPath(utils.getPath("themes"));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue