diff --git a/src/manjaro-hello.py b/src/manjaro-hello.py
index 3219a32..f2a93bf 100644
--- a/src/manjaro-hello.py
+++ b/src/manjaro-hello.py
@@ -192,14 +192,17 @@ class ManjaroHello():
self.set_locale(self.preferences["locale"])
self.save_preferences()
- def on_action_btn_clicked(self, btn):
- name = btn.get_name()
+ def on_action_clicked(self, action, _=None):
+ name = action.get_name()
if name in ("welcome", "readme", "release", "involved"):
self.builder.get_object("stack").set_visible_child(self.builder.get_object(name + "page"))
elif name == "installgui":
subprocess.call(["sudo", "-E", "calamares"])
elif name == "installcli":
subprocess.call(["sudo cli-installer"])
+ elif name == "autostart":
+ autostart = True if action.get_active() else False
+ self.change_autostart(autostart)
elif name == "about":
dialog = self.builder.get_object("aboutdialog")
dialog.set_transient_for(self.window)
@@ -209,10 +212,6 @@ class ManjaroHello():
def on_link_clicked(self, link, _=None):
webbrowser.open_new_tab(self.urls[link.get_name()])
- def on_autostart_switched(self, switch, _):
- autostart = True if switch.get_active() else False
- self.change_autostart(autostart)
-
def on_delete_window(self, *args):
Gtk.main_quit(*args)
diff --git a/ui/manjaro-hello.glade b/ui/manjaro-hello.glade
index e1fe53d..8043e82 100644
--- a/ui/manjaro-hello.glade
+++ b/ui/manjaro-hello.glade
@@ -171,7 +171,7 @@ We, the Manjaro Developers, hope that you will enjoy using Manjaro as much as we
TrueTrueTrue
-
+ 0
@@ -185,7 +185,7 @@ We, the Manjaro Developers, hope that you will enjoy using Manjaro as much as we
TrueTrueTrue
-
+ 0
@@ -213,7 +213,7 @@ We, the Manjaro Developers, hope that you will enjoy using Manjaro as much as we
TrueTrueTrue
-
+ 2
@@ -400,10 +400,11 @@ We, the Manjaro Developers, hope that you will enjoy using Manjaro as much as we
False
@@ -431,7 +432,7 @@ We, the Manjaro Developers, hope that you will enjoy using Manjaro as much as we
installguiTrueTrue
-
+ False
@@ -445,7 +446,7 @@ We, the Manjaro Developers, hope that you will enjoy using Manjaro as much as we
installcliTrueTrue
-
+ False
@@ -576,7 +577,7 @@ We, the Manjaro Developers, hope that you will enjoy using Manjaro as much as we
TrueTruehomeicon
-
+
@@ -599,7 +600,7 @@ We, the Manjaro Developers, hope that you will enjoy using Manjaro as much as we
TrueTrueiconabout
-
+ end