From 3f947d22606f83df5fa0cedecdc26c5f45628fdf Mon Sep 17 00:00:00 2001 From: Hugo Posnic Date: Wed, 21 Dec 2016 21:46:17 +0100 Subject: [PATCH] Improve way to set window subtitle --- src/manjaro_hello.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/manjaro_hello.py b/src/manjaro_hello.py index 9d7c6e5..fb960b2 100644 --- a/src/manjaro_hello.py +++ b/src/manjaro_hello.py @@ -70,10 +70,9 @@ class ManjaroHello(): self.builder.get_object("languages").set_active_id(self.preferences["locale"]) # Set window subtitle - subtitle = "" + subtitle = self.infos["arch"] if self.infos["codename"] and self.infos["release"]: - subtitle += self.infos["codename"] + " " + self.infos["release"] + " " - subtitle += self.infos["arch"] + subtitle = self.infos["codename"] + " " + self.infos["release"] + " " + subtitle self.builder.get_object("headerbar").props.subtitle = subtitle # Load images