mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2026-09-24 21:55:41 +00:00
fixes missing dir #823
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ export class AppTray {
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Open logs folder',
|
||||
label: 'Open config folder',
|
||||
click: () => {
|
||||
shell.openPath(path.join(app.getPath('userData'), 'apt-data'))
|
||||
}
|
||||
|
||||
@@ -33,6 +33,7 @@ export class ConfigStore {
|
||||
this.isTmpFile = true
|
||||
}
|
||||
try {
|
||||
await fs.mkdir(path.dirname(this.cfgPath), { recursive: true })
|
||||
await fs.writeFile(this.cfgPath, contents)
|
||||
} catch {
|
||||
app.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user