Fixed unable to load presets with dot in their names.

This commit is contained in:
Quentin Decaunes 2019-06-07 19:40:52 +02:00
parent fdc6559509
commit bab98bb193

View File

@ -128,7 +128,7 @@ function preset_updateList() {
* @param {string} presetName The preset name to be applied.
*/
function preset_apply(presetName) {
const presets = require('electron-settings').get(`presets.${presetName}`);
const presets = require('electron-settings').get(`presets`)[presetName];
appendLog(`preset_apply(): preset ${presetName}: ${JSON.stringify(presets)}`);
var ret = require('electron-settings').set("latest_controller_tabs_settings", presets);
appendLog(`preset_apply(): saved preset: ${JSON.stringify(ret)}`);