Fix dd_mode_remapping

This commit is contained in:
Yukino Song
2025-02-06 19:12:07 +08:00
parent 78714e65fc
commit 5708622362
2 changed files with 7 additions and 1 deletions

View File

@@ -356,10 +356,14 @@
if (typeof this.config[optionKey] === "string") {
this.config[optionKey] = JSON.parse(this.config[optionKey]);
} else {
this.config[optionKey] = [];
this.config[optionKey] = null;
}
}
this.config.dd_mode_remapping ??= {mixed: [], resolution_only: [], refresh_rate_only: []};
this.config.global_prep_cmd ??= [];
this.config.server_cmd ??= [];
// Populate default values from tabs options
this.tabs.forEach(tab => {
Object.keys(tab.options).forEach(optionKey => {