From 94fd8f0ad3820df3615fc4275dcbdbce0e879ad3 Mon Sep 17 00:00:00 2001 From: Huluti Date: Sun, 11 Dec 2016 00:37:11 +0100 Subject: [PATCH] Remove unseful condition --- src/manjaro-hello.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/manjaro-hello.py b/src/manjaro-hello.py index 2d6d73d..2c178d5 100644 --- a/src/manjaro-hello.py +++ b/src/manjaro-hello.py @@ -88,24 +88,20 @@ class ManjaroHello(): for img in ("google+", "facebook", "twitter", "reddit"): self.builder.get_object(img).set_from_file(self.data_path + "img/" + img + ".png") - # Set autostart switcher state - self.builder.get_object("autostart").set_active(self.preferences["autostart"]) - - # Init pages + # Load pages for page in ("readme", "release", "involved"): self.builder.get_object(page + "text").set_markup(self.read_page(page)) + # Set autostart switcher state + self.builder.get_object("autostart").set_active(self.preferences["autostart"]) + # Live systems if self.infos["live"]: - can_install = False + self.builder.get_object("installlabel").set_visible(True) if os.path.isfile("/usr/bin/calamares"): self.builder.get_object("installgui").set_visible(True) - can_install = True if os.path.isfile("/usr/bin/cli-installer"): self.builder.get_object("installcli").set_visible(True) - can_install = True - if can_install: - self.builder.get_object("installlabel").set_visible(True) self.window.show();