mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-07-02 12:49:40 +08:00
fixed status
This commit is contained in:
parent
78abaa86e9
commit
e625496d44
@ -321,14 +321,9 @@ export class ModelManager {
|
|||||||
const grid = new TG.Grid(container);
|
const grid = new TG.Grid(container);
|
||||||
this.grid = grid;
|
this.grid = grid;
|
||||||
|
|
||||||
let prevViewRowsLength = -1;
|
|
||||||
grid.bind('onUpdated', (e, d) => {
|
grid.bind('onUpdated', (e, d) => {
|
||||||
|
|
||||||
const viewRows = grid.viewRows;
|
this.showStatus(`${grid.viewRows.length.toLocaleString()} external models`);
|
||||||
if (viewRows.length !== prevViewRowsLength) {
|
|
||||||
prevViewRowsLength = viewRows.length;
|
|
||||||
this.showStatus(`${prevViewRowsLength.toLocaleString()} external models`);
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user