Fix error when codename and release don't exist
parent
70232a7d38
commit
e8a86c37bd
|
@ -84,9 +84,11 @@ class ManjaroHello():
|
||||||
self.save_preferences()
|
self.save_preferences()
|
||||||
|
|
||||||
# Set window subtitle
|
# Set window subtitle
|
||||||
|
subtitle = ""
|
||||||
if self.infos["codename"] and self.infos["release"]:
|
if self.infos["codename"] and self.infos["release"]:
|
||||||
self.builder.get_object("headerbar").props.subtitle = self.infos["codename"] + " " + self.infos["release"] + " "
|
subtitle += self.infos["codename"] + " " + self.infos["release"] + " "
|
||||||
self.builder.get_object("headerbar").props.subtitle += self.infos["arch"]
|
subtitle += self.infos["arch"]
|
||||||
|
self.builder.get_object("headerbar").props.subtitle = subtitle
|
||||||
|
|
||||||
# Load images
|
# Load images
|
||||||
for img in ("google+", "facebook", "twitter", "reddit"):
|
for img in ("google+", "facebook", "twitter", "reddit"):
|
||||||
|
|
Loading…
Reference in New Issue