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:
+5
-3
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user