mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
Remove toggling resize grid on refresh since it is not needed and was causing a bug.
This commit is contained in:
parent
2a7b2d9554
commit
a3e9b0ce04
@ -389,18 +389,6 @@ class ExtraNetworksTab {
|
|||||||
this.card_list.enable(this.card_view_en);
|
this.card_list.enable(this.card_view_en);
|
||||||
await Promise.all([this.tree_list.load(true), this.card_list.load(true)]);
|
await Promise.all([this.tree_list.load(true), this.card_list.load(true)]);
|
||||||
|
|
||||||
const div_dirs = this.container_elem.querySelector(".extra-network-content--dirs-view");
|
|
||||||
const div_tree = this.container_elem.querySelector(".extra-network-content--tree-view");
|
|
||||||
const div_card = this.container_elem.querySelector(".extra-network-content--card-view");
|
|
||||||
const div_dets = this.container_elem.querySelector(".extra-network-content--dets-view");
|
|
||||||
this.resize_grid.toggle({elem: div_dirs, override: this.dirs_view_en});
|
|
||||||
this.resize_grid.toggle({elem: div_tree, override: this.tree_view_en});
|
|
||||||
this.resize_grid.toggle({elem: div_card, override: this.card_view_en});
|
|
||||||
this.resize_grid.toggle({
|
|
||||||
elem: div_dets,
|
|
||||||
override: this.dets_view_en && div_dets.innerHTML !== "",
|
|
||||||
});
|
|
||||||
|
|
||||||
// apply the previous sort/filter options
|
// apply the previous sort/filter options
|
||||||
await this.applyListButtonStates();
|
await this.applyListButtonStates();
|
||||||
this.setSortMode(this.sort_mode_str);
|
this.setSortMode(this.sort_mode_str);
|
||||||
|
Loading…
Reference in New Issue
Block a user