mirror of
https://github.com/vladmandic/automatic
synced 2026-08-27 07:31:01 +02:00
Merge branch 'master' of https://github.com/vladmandic/automatic into settings-improvements
This commit is contained in:
+4
-3
@@ -1,5 +1,3 @@
|
||||
/* global gradioApp, onUiUpdate, opts */
|
||||
|
||||
window.opts = {};
|
||||
window.localization = {};
|
||||
let tabSelected = '';
|
||||
@@ -227,7 +225,7 @@ function showAllSettings() {
|
||||
});
|
||||
}
|
||||
|
||||
onUiUpdate(() => {
|
||||
onAfterUiUpdate(() => {
|
||||
sort_ui_elements();
|
||||
if (Object.keys(opts).length !== 0) return;
|
||||
const json_elem = gradioApp().getElementById('settings_json');
|
||||
@@ -512,6 +510,8 @@ function preview_theme() {
|
||||
}
|
||||
}
|
||||
|
||||
let uiLoaded = false;
|
||||
|
||||
function reconnect_ui() {
|
||||
const api_logo = Array.from(gradioApp().querySelectorAll('img')).filter((el) => el?.src?.endsWith('api-logo.svg'));
|
||||
if (api_logo.length > 0) api_logo[0].remove();
|
||||
@@ -525,6 +525,7 @@ function reconnect_ui() {
|
||||
rememberGallerySelection('txt2img_gallery');
|
||||
requestProgress(task_id, null, gallery, null, null, true);
|
||||
}
|
||||
uiLoaded = true;
|
||||
|
||||
const sd_model = gradioApp().getElementById('setting_sd_model_checkpoint');
|
||||
let loadingStarted = 0;
|
||||
|
||||
Reference in New Issue
Block a user