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