Uncheck textgen preset from master export by default

63bd7611b316d84f834c74ffedc0c483b1bb3d32

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

2 files changed, +9 -3Showing whitespace changes
public/scripts/preset-manager.js+1 -1
@@ -278,7 +278,7 @@ class PresetManager {
278 */278 */
279 static async performMasterExport() {279 static async performMasterExport() {
280 const sectionNames = Object.entries(this.masterSections).reduce((acc, [key, section]) => {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 return acc;282 return acc;
283 }, {});283 }, {});
284 const html = $(await renderTemplateAsync('masterExport', { sections: sectionNames }));284 const html = $(await renderTemplateAsync('masterExport', { sections: sectionNames }));
public/scripts/templates/masterExport.html+8 -2
@@ -3,9 +3,15 @@
3</h3>3</h3>
4<div class="flex-container flexFlowColumn justifyLeft">4<div class="flex-container flexFlowColumn justifyLeft">
5 {{#each sections}}5 {{#each sections}}
6 {{#with this}}
6 <label class="checkbox_label">7 <label class="checkbox_label">
7 <input type="checkbox" value="{{@key}}" checked>8 {{#if checked}}
8 <span data-i18n="{{this}}">{{this}}</span>9 <input type="checkbox" value="{{key}}" checked />
10 {{else}}
11 <input type="checkbox" value="{{key}}" />
12 {{/if}}
13 <span data-i18n="{{name}}">{{name}}</span>
9 </label>14 </label>
15 {{/with}}
10 {{/each}}16 {{/each}}
11</div>17</div>