From 26d063327c66150ba0030678ad1bfb6a8e40433c Mon Sep 17 00:00:00 2001 From: oop7 <110548351+oop7@users.noreply.github.com> Date: Wed, 7 Jan 2026 18:45:51 +0200 Subject: [PATCH] Fix indentation for zip extraction block Corrected the indentation so that the extraction of the executable occurs within the context of the open zip file. This ensures the file is extracted while the zip is accessible, preventing potential errors. --- src/core/ytsage_deno.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/ytsage_deno.py b/src/core/ytsage_deno.py index 94ddeb6..4d76e0d 100644 --- a/src/core/ytsage_deno.py +++ b/src/core/ytsage_deno.py @@ -171,9 +171,9 @@ class DownloadDenoThread(QThread): self.finished_signal.emit(False, f"Executable '{executable_name}' not found in zip") return - # Extract to app bin directory - target_dir = DENO_APP_BIN_PATH.parent - zip_ref.extract(executable_name, target_dir) + # Extract to app bin directory (while zip_ref is open) + target_dir = DENO_APP_BIN_PATH.parent + zip_ref.extract(executable_name, target_dir) # Verify the extracted file exists exe_path = DENO_APP_BIN_PATH