forked from extern/easydiffusion
Fix the restoring of the last selected model
This commit is contained in:
parent
8b764a8fd3
commit
d24a7a5c5e
@ -1313,7 +1313,7 @@ async function getModels() {
|
|||||||
modelOption.value = path + modelName
|
modelOption.value = path + modelName
|
||||||
modelOption.innerHTML = modelName !== '' ? (path != "" ? " "+modelName : modelName) : 'None'
|
modelOption.innerHTML = modelName !== '' ? (path != "" ? " "+modelName : modelName) : 'None'
|
||||||
|
|
||||||
if (modelName === selectedModel) {
|
if (path + modelName === selectedModel) {
|
||||||
modelOption.selected = true
|
modelOption.selected = true
|
||||||
}
|
}
|
||||||
modelField.appendChild(modelOption)
|
modelField.appendChild(modelOption)
|
||||||
|
Loading…
Reference in New Issue
Block a user