Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions comfyui_manager/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import logging
from comfy.cli_args import args

ENABLE_LEGACY_COMFYUI_MANAGER_FRONT_DEFAULT = True # Enable legacy ComfyUI Manager frontend while new UI is in beta phase

def prestartup():
from . import prestartup_script # noqa: F401
logging.info('[PRE] ComfyUI-Manager')
Expand All @@ -14,8 +12,7 @@ def start():
from .common import cm_global # noqa: F401

if not args.disable_manager:
should_show_legacy_manager_front = args.enable_manager_legacy_ui or ENABLE_LEGACY_COMFYUI_MANAGER_FRONT_DEFAULT
if should_show_legacy_manager_front:
if args.enable_manager_legacy_ui:
try:
from .legacy import manager_server # noqa: F401
from .legacy import share_3rdparty # noqa: F401
Expand Down
7 changes: 7 additions & 0 deletions comfyui_manager/glob/manager_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,13 @@ def populate_markdown(x):
if 'title' in x:
x['title'] = manager_util.sanitize_tag(x['title'])

@routes.get("/v2/manager/is_legacy_manager_ui")
async def is_legacy_manager_ui(request):
return web.json_response(
{"is_legacy_manager_ui": args.enable_manager_legacy_ui},
content_type="application/json",
status=200,
)

# freeze imported version
startup_time_installed_node_packs = core.get_installed_node_packs()
Expand Down