Add enable_checkout configuration option and update drag handling logic
This commit is contained in:
parent
986793632e
commit
cbd1f3f77c
3 changed files with 30 additions and 31 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue