소스 검색

Allow subcategories to be on by default; fix spurious export of default-true subcategories

tags/v1.1.0
Fen Dweller 5 년 전
부모
커밋
8f3ba09a2c
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. +5
    -1
      game.js

+ 5
- 1
game.js 파일 보기

@@ -4844,7 +4844,7 @@ function recurseDeletePanel(settings, panel) {
}
panel.entries.forEach(option => {
if (option.type == "subcategory") {
if (!settings[option.id]) {
if (settings[option.id] == option.default || (!settings[option.id] && option.default === undefined)) {
delete settings[option.id];
}
recurseDeletePanel(settings, option);
@@ -5612,6 +5612,10 @@ function render_subcategory_option(li, option) {
sub_input.setAttribute("name", option.id);
sub_input.setAttribute("type", "checkbox");

if (option.default === true) {
sub_input.setAttribute("checked", true);
}

let sub_label = document.createElement("label");
sub_label.classList.add("custom-header");
sub_label.setAttribute("for", option.id);


불러오는 중...
취소
저장