Uncheck textgen preset from master export by default
| @@ -278,7 +278,7 @@ class PresetManager { | ||
| 278 | 278 | */ |
| 279 | 279 | static async performMasterExport() { |
| 280 | 280 | const sectionNames = Object.entries(this.masterSections).reduce((acc, [key, section]) => { |
| 281 | - acc[key] = section.name; | |
| 281 | + acc[key] = { key: key, name: section.name, checked: key !== 'preset' }; | |
| 282 | 282 | return acc; |
| 283 | 283 | }, {}); |
| 284 | 284 | const html = $(await renderTemplateAsync('masterExport', { sections: sectionNames })); |
| @@ -3,9 +3,15 @@ | ||
| 3 | 3 | </h3> |
| 4 | 4 | <div class="flex-container flexFlowColumn justifyLeft"> |
| 5 | 5 | {{#each sections}} |
| 6 | - <label class="checkbox_label"> | |
| 6 | + {{#with this}} | |
| 7 | - <input type="checkbox" value="{{@key}}" checked> | |
| 7 | + <label class="checkbox_label"> | |
| 8 | - <span data-i18n="{{this}}">{{this}}</span> | |
| 8 | + {{#if checked}} | |
| 9 | - </label> | |
| 9 | + <input type="checkbox" value="{{key}}" checked /> | |
| 10 | + {{else}} | |
| 11 | + <input type="checkbox" value="{{key}}" /> | |
| 12 | + {{/if}} | |
| 13 | + <span data-i18n="{{name}}">{{name}}</span> | |
| 14 | + </label> | |
| 15 | + {{/with}} | |
| 10 | 16 | {{/each}} |
| 11 | 17 | </div> |