Fix not playing URIs

In case of local files the "filename" variable holds the string that is later assigned to the filename property (no difference which is used), but when playing URIs only filename property holds the string. Passing an undefined value to the label caused an error in this case and prevented playback of URIs.
This commit is contained in:
Rafał Dzięgiel
2021-01-30 22:41:27 +01:00
parent acfdb7bac4
commit 310ef3af95

View File

@@ -136,7 +136,7 @@ class ClapperPlaylistItem extends Gtk.ListBoxRow
icon_name: 'open-menu-symbolic', icon_name: 'open-menu-symbolic',
}); });
const label = new Gtk.Label({ const label = new Gtk.Label({
label: filename, label: this.filename,
single_line_mode: true, single_line_mode: true,
ellipsize: Pango.EllipsizeMode.END, ellipsize: Pango.EllipsizeMode.END,
width_chars: 5, width_chars: 5,