Skip to content

Commit

Permalink
fix: move control for merge seasons setting to the correct tab
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed Nov 2, 2024
1 parent 4fbb809 commit 368fe2e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Shokofin/Pages/Scripts/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,8 @@ function applyFormToConfig(form, config) {
c.LibraryFilteringMode = form.querySelector("#MediaFolderLibraryFilteringMode").value;
}
}

config.EXPERIMENTAL_MergeSeasons = form.querySelector("#EXPERIMENTAL_MergeSeasons").checked;
break;
}

Expand Down Expand Up @@ -496,8 +498,6 @@ function applyFormToConfig(form, config) {
config.Misc_ShowInMenu = form.querySelector("#Misc_ShowInMenu").checked;
config.IgnoredFolders = ignoredFolders;
form.querySelector("#IgnoredFolders").value = ignoredFolders.join(", ");

config.EXPERIMENTAL_MergeSeasons = form.querySelector("#EXPERIMENTAL_MergeSeasons").checked;
break;
}
}
Expand Down Expand Up @@ -589,6 +589,8 @@ async function applyConfigToForm(form, config) {
form.querySelector("#MediaFolderSelector").innerHTML = `<option value="">Click here to select a library</option>` + libraries
.map((library) => `<option value="${library.LibraryId}">${library.LibraryName}${config.ExpertMode ? ` (${library.LibraryId})` : ""}</option>`)
.join("");

form.querySelector("#EXPERIMENTAL_MergeSeasons").checked = config.EXPERIMENTAL_MergeSeasons || false;
break;
}

Expand Down Expand Up @@ -653,8 +655,6 @@ async function applyConfigToForm(form, config) {
case "misc": {
form.querySelector("#Misc_ShowInMenu").checked = config.Misc_ShowInMenu;
form.querySelector("#IgnoredFolders").value = config.IgnoredFolders.join();

form.querySelector("#EXPERIMENTAL_MergeSeasons").checked = config.EXPERIMENTAL_MergeSeasons || false;
break;
}
}
Expand Down

0 comments on commit 368fe2e

Please sign in to comment.