Fix error when codename and release don't exist

merge-requests/64/head
Hugo Posnic 2016-12-18 19:03:37 +01:00
parent 70232a7d38
commit e8a86c37bd
1 changed files with 4 additions and 2 deletions

View File

@ -84,9 +84,11 @@ class ManjaroHello():
self.save_preferences()
# Set window subtitle
subtitle = ""
if self.infos["codename"] and self.infos["release"]:
self.builder.get_object("headerbar").props.subtitle = self.infos["codename"] + " " + self.infos["release"] + " "
self.builder.get_object("headerbar").props.subtitle += self.infos["arch"]
subtitle += self.infos["codename"] + " " + self.infos["release"] + " "
subtitle += self.infos["arch"]
self.builder.get_object("headerbar").props.subtitle = subtitle
# Load images
for img in ("google+", "facebook", "twitter", "reddit"):