mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 00:11:59 +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)
|
openUri(uri)
|
||||||
{
|
{
|
||||||
let { player } = this.get_transient_for().get_child();
|
let { player } = this.get_transient_for().get_child();
|
||||||
player.set_media(uri);
|
player.set_playlist([uri]);
|
||||||
|
|
||||||
this.close();
|
this.close();
|
||||||
}
|
}
|
||||||
|
@@ -257,7 +257,7 @@ class ClapperPlayer extends PlayerBase
|
|||||||
case 'toggle_play':
|
case 'toggle_play':
|
||||||
case 'play':
|
case 'play':
|
||||||
case 'pause':
|
case 'pause':
|
||||||
case 'set_media':
|
case 'set_playlist':
|
||||||
this[action](value);
|
this[action](value);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Reference in New Issue
Block a user