From f7cfee875c37b625616ea71f43b4dd24106d76e2 Mon Sep 17 00:00:00 2001 From: Hugo Posnic Date: Sat, 17 Dec 2016 00:07:49 +0100 Subject: [PATCH] Reload pages when language changed --- src/manjaro-hello.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/manjaro-hello.py b/src/manjaro-hello.py index a3573fa..cc82b9f 100644 --- a/src/manjaro-hello.py +++ b/src/manjaro-hello.py @@ -97,10 +97,6 @@ class ManjaroHello(): for img in ("google+", "facebook", "twitter", "reddit"): self.builder.get_object(img).set_from_file(self.data_path + "img/" + img + ".png") - # Load pages - for page in ("readme", "release", "involved"): - self.builder.get_object(page + "label").set_markup(self.read_page(page)) - # Set autostart switcher state self.builder.get_object("autostart").set_active(self.preferences["autostart"]) @@ -148,6 +144,10 @@ class ManjaroHello(): self.default_texts[elt] = getattr(self.builder.get_object(elt), "get_" + elts[elt])() getattr(self.builder.get_object(elt), "set_" + elts[elt])(_(self.default_texts[elt])) + # Load pages + for page in ("readme", "release", "involved"): + self.builder.get_object(page + "label").set_markup(self.read_page(page)) + def change_autostart(self, state): if state and not os.path.isfile(self.autostart_path): try: