Add enable_checkout configuration option and update drag handling logic

This commit is contained in:
claudi 2026-02-25 13:34:37 +01:00
parent 986793632e
commit cbd1f3f77c
3 changed files with 30 additions and 31 deletions

View file

@ -638,8 +638,8 @@ class MainWindow(QMainWindow):
"""
logger.info(f"Drag started: {source} -> {local_path}")
# Ask user if they want to check out the asset
if source.startswith("http"):
# Ask user if they want to check out the asset (only when enabled in config)
if source.startswith("http") and self.config.enable_checkout:
self._prompt_checkout(source, local_path)
def _prompt_checkout(self, azure_url: str, local_path: str) -> None: