Refactor HVideoTool to support project-based workflow: introduced project management features, updated UI for project handling, and enhanced documentation in README and CLAUDE.md. The tool now organizes images and settings into projects, improving usability and detection caching.

This commit is contained in:
Leonid Pershin
2026-06-07 04:53:27 +03:00
parent 7f0121b7df
commit e27dfdf518
27 changed files with 2998 additions and 387 deletions
+5 -3
View File
@@ -10,11 +10,13 @@ from .config import AppConfig
from .ui.main_window import MainWindow
def run(config: AppConfig, folder: str | None = None) -> int:
def run(config: AppConfig, target: str | None = None) -> int:
app = QApplication(sys.argv)
app.setApplicationName("HVideoTool")
window = MainWindow(config)
window.show()
if folder:
window.open_path(folder)
if target:
window.open_path(target) # open the given project
else:
window._auto_open_last() # reopen the last project, if any
return app.exec()