MCPcopy Create free account
hub / github.com/Eltaurus-Lt/CourseDump2022 / fromSettings

Method fromSettings

menu.js:89–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87 }
88
89 async fromSettings() {
90 const settings = await loadSettings();
91
92 this.DownloadMedia.checked = settings["download_media"];
93 this.ExtraFields.checked = settings["extra_fields"];
94 this.LevelTags.checked = settings["level_tags"];
95 this.AnkiPrompt.checked = settings["anki_import_prompt"];
96
97 this.LearningProgress.checked = settings["learning_progress"];
98 this.AlternativeAnswers.checked = settings["alternative_answers"];
99 this.LearnableMeta.checked = settings["learnable_meta"];
100 this.LearnableIds.checked = settings["learnable_ids"];
101 this.SkipMedia.checked = settings["skip_media_download"];
102 this.CourseMeta.checked = settings["course_metadata"];
103
104 this.Video.checked = (settings["videofiles_limit"] > 0);
105 }
106}
107
108function extractNumericValue(string, key) {

Callers 1

menu.jsFile · 0.80

Calls 1

loadSettingsFunction · 0.85

Tested by

no test coverage detected