mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
Fix more bugs
This commit is contained in:
parent
c550bcce44
commit
85197f870f
@ -548,7 +548,7 @@ class ExtraNetworksTab {
|
||||
dirs_btn.dataset.selected = "";
|
||||
}
|
||||
if (_exists(tree_btn)) {
|
||||
tree_btn.dataset.selected = "";
|
||||
this.tree_list.onRowSelected(tree_btn.dataset.divId, tree_btn, true);
|
||||
}
|
||||
this.applyDirectoryFilter(source_elem.dataset.path);
|
||||
} else {
|
||||
@ -556,7 +556,7 @@ class ExtraNetworksTab {
|
||||
delete dirs_btn.dataset.selected;
|
||||
}
|
||||
if (_exists(tree_btn)) {
|
||||
delete tree_btn.dataset.selected;
|
||||
this.tree_list.onRowSelected(tree_btn.dataset.divId, tree_btn, false);
|
||||
}
|
||||
this.applyDirectoryFilter("");
|
||||
}
|
||||
@ -570,7 +570,7 @@ class ExtraNetworksTab {
|
||||
// Filter is already applied from dirs btn. Just need to select the tree btn.
|
||||
_reset();
|
||||
dirs_btn.dataset.selected = "";
|
||||
tree_btn.dataset.selected = "";
|
||||
this.tree_list.onRowSelected(tree_btn.dataset.divId, tree_btn, true);
|
||||
}
|
||||
} else if (_exists(tree_btn)) {
|
||||
const src_path = String.raw`${tree_btn.dataset.path.replaceAll("\\", "\\\\")}`;
|
||||
@ -579,7 +579,7 @@ class ExtraNetworksTab {
|
||||
// Filter is already applied from tree btn. Just need to select the dirs btn.
|
||||
_reset();
|
||||
dirs_btn.dataset.selected = "";
|
||||
tree_btn.dataset.selected = "";
|
||||
this.tree_list.onRowSelected(tree_btn.dataset.divId, tree_btn, true);
|
||||
}
|
||||
} else {
|
||||
// No tree/dirs button is selected. Apply empty directory filter.
|
||||
@ -589,8 +589,6 @@ class ExtraNetworksTab {
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
function popup(contents) {
|
||||
if (!globalPopup) {
|
||||
globalPopup = document.createElement('div');
|
||||
|
Loading…
Reference in New Issue
Block a user