mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
Prefer "set_playlist" over "set_media" method
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user