diff --git a/src/manjaro_hello.py b/src/manjaro_hello.py index 97fa460..253fe30 100644 --- a/src/manjaro_hello.py +++ b/src/manjaro_hello.py @@ -251,8 +251,7 @@ class ManjaroHello(): if name == "install": subprocess.Popen(["sudo", "-E", "calamares"]) elif name == "autostart": - autostart = True if action.get_active() else False - self.set_autostart(autostart) + self.set_autostart(action.get_active()) elif name == "about": dialog = self.builder.get_object("aboutdialog") dialog.run()