Improve way to set window subtitle
parent
45dee90aec
commit
3f947d2260
|
@ -70,10 +70,9 @@ class ManjaroHello():
|
||||||
self.builder.get_object("languages").set_active_id(self.preferences["locale"])
|
self.builder.get_object("languages").set_active_id(self.preferences["locale"])
|
||||||
|
|
||||||
# Set window subtitle
|
# Set window subtitle
|
||||||
subtitle = ""
|
subtitle = self.infos["arch"]
|
||||||
if self.infos["codename"] and self.infos["release"]:
|
if self.infos["codename"] and self.infos["release"]:
|
||||||
subtitle += self.infos["codename"] + " " + self.infos["release"] + " "
|
subtitle = self.infos["codename"] + " " + self.infos["release"] + " " + subtitle
|
||||||
subtitle += self.infos["arch"]
|
|
||||||
self.builder.get_object("headerbar").props.subtitle = subtitle
|
self.builder.get_object("headerbar").props.subtitle = subtitle
|
||||||
|
|
||||||
# Load images
|
# Load images
|
||||||
|
|
Loading…
Reference in New Issue