From 37c008dbb2670943a796491eb64a5c062ecb1ec9 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Wed, 29 Mar 2023 23:11:27 +0300 Subject: [PATCH] Fixed for cancel --- slpkg/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slpkg/main.py b/slpkg/main.py index 24862c20..c09694dc 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -453,9 +453,11 @@ class Argparse(Configs): text: str = f'There are {len(choices)} packages:' code, tags = self.dialogbox.checklist(text, packages, title, height, width, list_height, choices) - os.system('clear') + if code == 'cancel': + raise SystemExit() + if not tags: return packages