mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
ability to disable parts of the app
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user