mirror of
https://git.datalinker.icu/ltdrdata/ComfyUI-Manager
synced 2025-12-19 02:54:23 +08:00
fix: message fix.
This commit is contained in:
parent
ca2a9b894f
commit
b31931333e
@ -55,7 +55,7 @@ sys.path.append('../..')
|
|||||||
from torchvision.datasets.utils import download_url
|
from torchvision.datasets.utils import download_url
|
||||||
|
|
||||||
# ensure .js
|
# ensure .js
|
||||||
print("### Loading: ComfyUI-Manager (V0.28.8)")
|
print("### Loading: ComfyUI-Manager (V0.28.9)")
|
||||||
|
|
||||||
comfy_ui_required_revision = 1240
|
comfy_ui_required_revision = 1240
|
||||||
comfy_ui_revision = "Unknown"
|
comfy_ui_revision = "Unknown"
|
||||||
@ -315,6 +315,9 @@ def git_repo_has_updates(path, do_fetch=False, do_update=False):
|
|||||||
|
|
||||||
if commit_hash != new_commit_hash:
|
if commit_hash != new_commit_hash:
|
||||||
print(f"\x1b[2K\rUpdated: {path}")
|
print(f"\x1b[2K\rUpdated: {path}")
|
||||||
|
return True
|
||||||
|
else:
|
||||||
|
return False
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Updating failed: {path}\n{e}")
|
print(f"Updating failed: {path}\n{e}")
|
||||||
|
|||||||
@ -260,7 +260,7 @@ async function updateAll(update_check_checkbox) {
|
|||||||
const response1 = await api.fetchApi('/comfyui_manager/update_comfyui');
|
const response1 = await api.fetchApi('/comfyui_manager/update_comfyui');
|
||||||
const response2 = await api.fetchApi(`/customnode/update_all?mode=${mode}`);
|
const response2 = await api.fetchApi(`/customnode/update_all?mode=${mode}`);
|
||||||
|
|
||||||
if(response1.status != 200 || response2.status != 200) {
|
if(response1.status != 200 || response2.status != 201) {
|
||||||
app.ui.dialog.show('Failed to update ComfyUI or several extensions.<BR><BR>See terminal log.<BR>');
|
app.ui.dialog.show('Failed to update ComfyUI or several extensions.<BR><BR>See terminal log.<BR>');
|
||||||
app.ui.dialog.element.style.zIndex = 9999;
|
app.ui.dialog.element.style.zIndex = 9999;
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user