Avoid removing other settings when saving ryzenadj exe path.

This commit is contained in:
Quentin Decaunes 2019-02-28 18:40:22 +01:00
parent b559b7d025
commit 3de622ceb9

View File

@ -130,6 +130,7 @@ function askingForRyzenAdjExecutablePath() {
if (typeof filePaths[0] !== 'undefined') { if (typeof filePaths[0] !== 'undefined') {
const settings = require('electron-settings'); const settings = require('electron-settings');
settings.set("settings", { settings.set("settings", {
...settings.get('settings'),
ryzen_adj_path: filePaths[0] ryzen_adj_path: filePaths[0]
}); });
notification('primary', 'Path to ryzenAdj.exe has been saved.'); notification('primary', 'Path to ryzenAdj.exe has been saved.');