ability to disable parts of the app

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-11-03 19:36:55 -05:00
parent aa42dd9cca
commit 05261e708a
16 changed files with 191 additions and 127 deletions
+2 -1
View File
@@ -577,7 +577,8 @@ function setupExtraNetworksForTab(tabName) {
async function showNetworks() {
for (const tabName of ['txt2img', 'img2img', 'control', 'video']) {
if (window.opts.extra_networks_show) gradioApp().getElementById(`${tabName}_extra_networks_btn`).click();
const btn = gradioApp().getElementById(`${tabName}_extra_networks_btn`);
if (window.opts.extra_networks_show && btn) btn.click();
}
log('showNetworks');
}