mirror of
https://github.com/vladmandic/automatic
synced 2026-09-10 23:08:43 +02:00
Merge branch 'dev' of https://github.com/vladmandic/sdnext into dev
This commit is contained in:
@@ -64,6 +64,10 @@ function selected_gallery_index() {
|
||||
const button = selected_gallery_button();
|
||||
let result = -1;
|
||||
buttons.forEach((v, i) => { if (v === button) { result = i; } });
|
||||
if (result === -1 && gradioApp().getElementById('tab-gallery-search')?.checkVisibility()) {
|
||||
const gallerySelection = window.getGallerySelection();
|
||||
if (Number.isInteger(gallerySelection.index)) result = gallerySelection.index;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user