Rename install button

This commit is contained in:
Hugo Posnic
2016-12-26 17:29:24 +01:00
parent e3fc3aceaa
commit e7b263b995
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -96,7 +96,7 @@ class ManjaroHello():
# Live systems
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.builder.get_object("install").set_visible(True)
self.window.show()
@@ -148,7 +148,7 @@ class ManjaroHello():
"build": "label",
"donate": "label",
"installlabel": "label",
"installgui": "label",
"install": "label",
"autostartlabel": "label",
"aboutdialog": "comments"
}
@@ -227,7 +227,7 @@ class ManjaroHello():
def on_action_clicked(self, action, _=None):
"""Event for differents actions."""
name = action.get_name()
if name == "installgui":
if name == "install":
subprocess.call(["sudo", "-E", "calamares"])
elif name == "autostart":
autostart = True if action.get_active() else False