From 887d82d993c4716d178a587c0286e6be83f30b4f Mon Sep 17 00:00:00 2001 From: Jarred Wilson Date: Mon, 30 Sep 2024 18:51:42 +0000 Subject: [PATCH] fix button label update --- vanilla_first_setup/defaults/welcome.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vanilla_first_setup/defaults/welcome.py b/vanilla_first_setup/defaults/welcome.py index 0eede13e..f10f92b8 100644 --- a/vanilla_first_setup/defaults/welcome.py +++ b/vanilla_first_setup/defaults/welcome.py @@ -69,12 +69,11 @@ def __start_welcome_animation(self): def change_langs(): while True: for locale in all_locale: - breakpoint() translator = translation('vanilla-first-setup', localedir='/usr/share/locale', languages=[locale], fallback=True) _ = translator.gettext GLib.idle_add(self.title_label.set_text, _("Welcome!")) - GLib.idle_add(self.btn_next.set_text, _("Next")) - GLib.idle_add(self.btn_advanced.set_text, _("Advanced")) + GLib.idle_add(self.btn_next.set_label, _("Next")) + GLib.idle_add(self.btn_advanced.set_label, _("Advanced")) time.sleep(1.2) RunAsync(change_langs, None)