From 0ea38db7ef056de3224fe88aaf23f18d6ed794e0 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Wed, 30 Nov 2022 12:05:46 +0530 Subject: [PATCH] Show the SD 2.0 setting only to beta users --- ui/media/js/parameters.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/media/js/parameters.js b/ui/media/js/parameters.js index dac008ef..ddc4975c 100644 --- a/ui/media/js/parameters.js +++ b/ui/media/js/parameters.js @@ -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 }