From 1cb5386756bf27336e600cb2411b64a0d3e33c7f Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Thu, 6 Jul 2023 10:17:30 -0400 Subject: [PATCH] Fixed error when declining extension download Former-commit-id: 02933773afc9f542ba523f0ffe0c80af33673300 Former-commit-id: 50b2953f7af0351bda5f4c89b114db181ced0359 --- lib/stweak.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/stweak.py b/lib/stweak.py index c8742be..1cd263e 100644 --- a/lib/stweak.py +++ b/lib/stweak.py @@ -384,7 +384,8 @@ def extension_downloader(): # set permissions under active user chmod(_exe_dir, 0o755) chmod(_ini_dir, 0o644) - return False, _selected + return False, _selected + return False, False # change ownership and install using system commands - requires running outside of curses (text input) @@ -410,7 +411,8 @@ def extension_menu(): _choice = curses_radio(('download/update extensions', 'remove extensions', 'exit/done'), 'extension management') if _choice == 0: _term_message, _ext_name = extension_downloader() - break + if _ext_name: + break elif _choice == 1: pass else: