Refactor HVideoTool's configuration and project management: updated project handling in core/project.py, streamlined restoration settings in config.py, and improved documentation in CLAUDE.md. Removed unused parameters and enhanced type hints for better clarity.
This commit is contained in:
@@ -39,7 +39,7 @@ def apply(config: AppConfig) -> None:
|
||||
config.default_threshold = float(data["threshold"])
|
||||
if data.get("restorer"):
|
||||
config.restorer = data["restorer"]
|
||||
for key in ("dm_dir", "dm_model", "dm_python", "dm_gpu"):
|
||||
for key in ("dm_dir", "dm_model", "dm_gpu"):
|
||||
if key in data:
|
||||
setattr(config, key, data[key])
|
||||
|
||||
@@ -54,7 +54,6 @@ def save(config: AppConfig) -> None:
|
||||
restorer=config.restorer,
|
||||
dm_dir=config.dm_dir,
|
||||
dm_model=config.dm_model,
|
||||
dm_python=config.dm_python,
|
||||
dm_gpu=config.dm_gpu,
|
||||
)
|
||||
_write(data)
|
||||
|
||||
Reference in New Issue
Block a user