Simplify live condition

This commit is contained in:
Hugo Posnic 2016-12-22 22:32:30 +01:00
parent d7ce6b1c3d
commit 3f0a7208a7

View File

@ -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()