mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-24 06:32:12 -03:00
feat(updates): improve check updates confirmation
This commit is contained in:
@@ -235,13 +235,22 @@ export class PageControls {
|
||||
this._updateCheckInProgress = true;
|
||||
setLoadingState(true);
|
||||
|
||||
const handleComplete = () => {
|
||||
this._updateCheckInProgress = false;
|
||||
setLoadingState(false);
|
||||
};
|
||||
|
||||
try {
|
||||
await performModelUpdateCheck();
|
||||
await performModelUpdateCheck({
|
||||
onComplete: handleComplete,
|
||||
});
|
||||
} catch (error) {
|
||||
console.error('Failed to check model updates:', error);
|
||||
} finally {
|
||||
this._updateCheckInProgress = false;
|
||||
setLoadingState(false);
|
||||
if (this._updateCheckInProgress) {
|
||||
this._updateCheckInProgress = false;
|
||||
setLoadingState(false);
|
||||
}
|
||||
dropdownGroup?.classList.remove('active');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user