Fix missing file extension in online URIs

This commit is contained in:
Rafał Dzięgiel
2021-04-09 18:16:02 +02:00
parent ebe72f20b5
commit dafa2cfdf5
2 changed files with 11 additions and 16 deletions

View File

@@ -55,30 +55,25 @@ class ClapperPlaylistWidget extends Gtk.ListBox
return true;
}
getActiveRow()
{
return this.get_row_at_index(this.activeRowId);
}
getActiveFilename()
{
const row = this.get_row_at_index(this.activeRowId);
const row = this.getActiveRow();
if(!row) return null;
return row.filename;
}
/* FIXME: Remove once/if GstPlay(er) gets
* less vague MediaInfo signals */
getActiveIsLocalFile()
{
const row = this.get_row_at_index(this.activeRowId);
if(!row) return null;
return row.isLocalFile;
}
deactivateActiveItem()
{
if(this.activeRowId < 0)
return;
const row = this.get_row_at_index(this.activeRowId);
const row = this.getActiveRow();
if(!row) return null;
const icon = row.child.get_first_child();