Check if logo exists

merge-requests/64/head
Hugo Posnic 2017-05-07 17:59:17 +02:00
parent b87c1f722b
commit 5c9b31a64c
1 changed files with 5 additions and 4 deletions

View File

@ -56,10 +56,11 @@ class ManjaroHello():
self.builder.get_object("headerbar").props.subtitle = subtitle self.builder.get_object("headerbar").props.subtitle = subtitle
# Load logo # Load logo
logo = GdkPixbuf.Pixbuf.new_from_file(self.logo_path) if os.path.isfile(self.logo_path):
self.window.set_icon(logo) logo = GdkPixbuf.Pixbuf.new_from_file(self.logo_path)
self.builder.get_object("manjaroicon").set_from_pixbuf(logo) self.window.set_icon(logo)
self.builder.get_object("aboutdialog").set_logo(logo) self.builder.get_object("manjaroicon").set_from_pixbuf(logo)
self.builder.get_object("aboutdialog").set_logo(logo)
# Create pages # Create pages
self.pages = ("readme", "release", "involved") self.pages = ("readme", "release", "involved")