MCPcopy Create free account
hub / github.com/easydiffusion/easydiffusion / loadDefaultSettingsSection

Function loadDefaultSettingsSection

ui/media/js/auto-save.js:194–204  ·  view source on GitHub ↗
(section_id)

Source from the content-addressed store, hash-verified

192}
193
194function loadDefaultSettingsSection(section_id) {
195 CURRENTLY_LOADING_SETTINGS = true
196 var section = SETTINGS_SECTIONS.find((s) => s.id == section_id)
197 section.keys.forEach((key) => {
198 var setting = SETTINGS[key]
199 setting.value = setting.default
200 setSetting(setting.element, setting.value)
201 })
202 CURRENTLY_LOADING_SETTINGS = false
203 saveSettings()
204}
205
206function settingChangeHandler(event) {
207 if (!CURRENTLY_LOADING_SETTINGS) {

Callers 1

auto-save.jsFile · 0.85

Calls 2

setSettingFunction · 0.85
saveSettingsFunction · 0.85

Tested by

no test coverage detected