From 310ef3af95d369e43e78635d119f5f9920215ed0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Sat, 30 Jan 2021 22:41:27 +0100 Subject: [PATCH] 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. --- src/playlist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playlist.js b/src/playlist.js index 34c1cf24..cb62e5ed 100644 --- a/src/playlist.js +++ b/src/playlist.js @@ -136,7 +136,7 @@ class ClapperPlaylistItem extends Gtk.ListBoxRow icon_name: 'open-menu-symbolic', }); const label = new Gtk.Label({ - label: filename, + label: this.filename, single_line_mode: true, ellipsize: Pango.EllipsizeMode.END, width_chars: 5,