Show the SD 2.0 setting only to beta users

This commit is contained in:
cmdr2 2022-11-30 12:05:46 +05:30
parent 2706149399
commit 0ea38db7ef

View File

@ -136,7 +136,7 @@ var PARAMETERS = [
id: "test_sd2",
type: ParameterType.checkbox,
label: "Test SD 2.0",
note: "Experimental! High memory usage! GPU-only! Please restart the program after changing this.",
note: "Experimental! High memory usage! GPU-only! Not the final version! Please restart the program after changing this.",
icon: "fa-fire",
default: false,
},
@ -242,6 +242,9 @@ async function getAppConfig() {
if ('test_sd2' in config) {
testSD2Field.checked = config['test_sd2']
}
let testSD2SettingEntry = getParameterSettingsEntry('test_sd2')
testSD2SettingEntry.style.display = (config.update_branch === 'beta' ? '' : 'none')
if (config.net && config.net.listen_to_network === false) {
listenToNetworkField.checked = false
}