Merge branch 'master' of https://github.com/vladmandic/automatic into settings-improvements

This commit is contained in:
Alex Heller
2023-06-08 19:52:14 +02:00
67 changed files with 1313 additions and 516 deletions
+4 -3
View File
@@ -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;