mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-08-17 22:50:00 +02:00
Improve responsiveness of UI startup by not waiting for render threads to start up before showing the UI. Errors while starting the render thread will be logged anyway, so there's no need to block the main thread for this
This commit is contained in:
@@ -627,9 +627,9 @@ class ModelDropdown {
|
||||
}
|
||||
|
||||
/* (RE)LOAD THE MODELS */
|
||||
async function getModels() {
|
||||
async function getModels(scanForMalicious = true) {
|
||||
try {
|
||||
modelsCache = await SD.getModels()
|
||||
modelsCache = await SD.getModels(scanForMalicious)
|
||||
modelsOptions = modelsCache["options"]
|
||||
if ("scan-error" in modelsCache) {
|
||||
// let previewPane = document.getElementById('tab-content-wrapper')
|
||||
@@ -667,4 +667,4 @@ async function getModels() {
|
||||
}
|
||||
|
||||
// reload models button
|
||||
document.querySelector("#reload-models").addEventListener("click", getModels)
|
||||
document.querySelector("#reload-models").addEventListener("click", () => getModels())
|
||||
|
Reference in New Issue
Block a user