Uncheck textgen preset from master export by default

63bd7611b316d84f834c74ffedc0c483b1bb3d32

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +11 -5Ignore whitespace
public/scripts/preset-manager.js+1 -1
@@ -278,7 +278,7 @@ class PresetManager {
278278 */
279279 static async performMasterExport() {
280280 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' };
282282 return acc;
283283 }, {});
284284 const html = $(await renderTemplateAsync('masterExport', { sections: sectionNames }));
public/scripts/templates/masterExport.html+10 -4
@@ -3,9 +3,15 @@
33</h3>
44<div class="flex-container flexFlowColumn justifyLeft">
55 {{#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}}
1016 {{/each}}
1117</div>