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

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

View File

@ -437,9 +437,9 @@ We, the Manjaro Developers, hope that you will enjoy using Manjaro as much as we
</packing>
</child>
<child>
<object class="GtkButton" id="installgui">
<object class="GtkButton" id="install">
<property name="label" translatable="yes">Use Calamares (Graphic method)</property>
<property name="name">installgui</property>
<property name="name">install</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<signal name="clicked" handler="on_action_clicked" swapped="no"/>