From 9184302c187693e33140ae5cf426092edfd566a4 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Mon, 4 Oct 2021 12:11:54 -0600 Subject: [PATCH] Fix logic --- resources/utilities.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/resources/utilities.py b/resources/utilities.py index 11237e120..721820144 100644 --- a/resources/utilities.py +++ b/resources/utilities.py @@ -226,11 +226,12 @@ def cls(): global clear if not clear: return - if not check_recovery(): - os.system("cls" if os.name == "nt" else "clear") - elif check_cli_args() is not None: - print("\u001Bc") - # Our GUI does not support clear screen + if check_cli_args() is not None: + # Our GUI does not support clear screen + if not check_recovery(): + os.system("cls" if os.name == "nt" else "clear") + else: + print("\u001Bc") def get_nvram(variable: str, uuid: str = None, *, decode: bool = False): # TODO: Properly fix for El Capitan, which does not print the XML representation even though we say to