Commit 9854a6c5 authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko

nintendo-ds-layout-item: Fix subtitle check

Actually check whether the string, rather than the label widget, is null.
parent 10fab1c0
Pipeline #105550 passed with stages
in 15 minutes and 12 seconds
......@@ -16,12 +16,13 @@ private class Games.NintendoDsLayoutItem : Gtk.ListBoxRow {
}
public override void constructed () {
this.icon.icon_name = layout.get_icon ();
this.title.label = layout.get_title ();
icon.icon_name = layout.get_icon ();
title.label = layout.get_title ();
if (subtitle != null) {
this.subtitle.label = layout.get_subtitle ();
this.subtitle.show ();
var subtitle_str = layout.get_subtitle ();
if (subtitle_str != null) {
subtitle.label = subtitle_str;
subtitle.show ();
}
base.constructed ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment