Skip to content

Commit 318358a

Browse files
bennycodeGregor Herdmann
authored and
Gregor Herdmann
committed
fix: Change app language (#1725)
1 parent 424d496 commit 318358a

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

electron/js/settings/SchemaUpdater.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ class SchemaUpdater {
6060
}
6161
});
6262
}
63-
}
6463

65-
try {
66-
fs.writeJsonSync(configFileV1, config, {spaces: 2});
67-
} catch (error) {
68-
debugLogger(`Failed to write config to "${configFileV1}": ${error.message}`, error);
64+
try {
65+
fs.writeJsonSync(configFileV1, config, {spaces: 2});
66+
} catch (error) {
67+
debugLogger(`Failed to write config to "${configFileV1}": ${error.message}`, error);
68+
}
6969
}
7070

7171
return configFileV1;

electron/main.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,11 @@ const renameLogFile = () => {
308308
})
309309
.forEach(file => {
310310
if (file.endsWith('.log')) {
311-
fs.renameSync(file, file.replace('.log', '.old'));
311+
try {
312+
fs.renameSync(file, file.replace('.log', '.old'));
313+
} catch (error) {
314+
console.error(`Failed to rename log file: ${error.message}`);
315+
}
312316
}
313317
});
314318
});

0 commit comments

Comments
 (0)