Prefer "set_playlist" over "set_media" method

This commit is contained in:
Rafostar
2020-12-15 18:15:40 +01:00
parent 6d4cd494fe
commit 7431f58034
2 changed files with 2 additions and 2 deletions

View File

@@ -133,7 +133,7 @@ class ClapperUriDialog extends Gtk.Dialog
openUri(uri)
{
let { player } = this.get_transient_for().get_child();
player.set_media(uri);
player.set_playlist([uri]);
this.close();
}

View File

@@ -257,7 +257,7 @@ class ClapperPlayer extends PlayerBase
case 'toggle_play':
case 'play':
case 'pause':
case 'set_media':
case 'set_playlist':
this[action](value);
break;
default: