Improve way to set window subtitle

merge-requests/64/head
Hugo Posnic 2016-12-21 21:46:17 +01:00
parent 45dee90aec
commit 3f947d2260
1 changed files with 2 additions and 3 deletions

View File

@ -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