mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-22 05:32:12 -03:00
Add ModelUpdateService dependency to ModelLifecycleService to enable synchronization during model deletion. The service is now passed through BaseModelRoutes initialization and used in delete_model to trigger updates when a model is removed. This ensures external systems stay in sync with local model state changes. Key changes: - Inject update_service into ModelLifecycleService constructor - Extract model ID from metadata during deletion - Call update service sync method after successful deletion - Add proper type hints and TYPE_CHECKING imports