mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-22 18:13:28 +07:00
Fixed unable to load presets with dot in their names.
This commit is contained in:
parent
fdc6559509
commit
bab98bb193
@ -128,7 +128,7 @@ function preset_updateList() {
|
|||||||
* @param {string} presetName The preset name to be applied.
|
* @param {string} presetName The preset name to be applied.
|
||||||
*/
|
*/
|
||||||
function preset_apply(presetName) {
|
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)}`);
|
appendLog(`preset_apply(): preset ${presetName}: ${JSON.stringify(presets)}`);
|
||||||
var ret = require('electron-settings').set("latest_controller_tabs_settings", presets);
|
var ret = require('electron-settings').set("latest_controller_tabs_settings", presets);
|
||||||
appendLog(`preset_apply(): saved preset: ${JSON.stringify(ret)}`);
|
appendLog(`preset_apply(): saved preset: ${JSON.stringify(ret)}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user