fixes missing dir #823

This commit is contained in:
Alexander Drozdov
2022-12-31 21:19:46 +02:00
parent c6ca6f2381
commit ea8cc06bbf
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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'))
}
+1
View File
@@ -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)