From 3f0a7208a750dbd46d71eba581a9e3423ea9de36 Mon Sep 17 00:00:00 2001 From: Hugo Posnic Date: Thu, 22 Dec 2016 22:32:30 +0100 Subject: [PATCH] Simplify live condition --- src/manjaro_hello.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/manjaro_hello.py b/src/manjaro_hello.py index 8c5e71b..cdfea35 100644 --- a/src/manjaro_hello.py +++ b/src/manjaro_hello.py @@ -91,10 +91,9 @@ class ManjaroHello(): self.builder.get_object("autostart").set_active(self.autostart) # Live systems - if self.infos["live"]: - if os.path.isfile("/usr/bin/calamares"): - self.builder.get_object("installlabel").set_visible(True) - self.builder.get_object("installgui").set_visible(True) + if self.infos["live"] and os.path.isfile("/usr/bin/calamares"): + self.builder.get_object("installlabel").set_visible(True) + self.builder.get_object("installgui").set_visible(True) self.window.show()