feat: 新增新版本检测蓝色弹框通知

This commit is contained in:
Jony
2026-04-13 01:00:53 +08:00
parent 92bcf65d14
commit 82752d34fc
3 changed files with 114 additions and 1 deletions
+4 -1
View File
@@ -11,9 +11,12 @@ Comfyui_o1key - ComfyUI 自定义节点集合
# 检查更新(仅在启动时检查一次)
try:
from .utils.update_checker import check_for_updates, notify_update_available
from .utils.update_checker import check_for_updates, notify_update_available, notify_new_version
notify_update_available() # TODO: 测试用,改回 if check_for_updates(): notify_update_available()
if check_for_updates():
notify_new_version()
except Exception:
# 静默失败,不影响插件加载
pass