mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 03:32:32 +02:00
Fix track focusing in Melodactyl's :load and :filter.
--HG-- extra : rebase_source : f1aa56b7413a785e601b95da5052e94e851bdfbe
This commit is contained in:
1 parent
377f8b01d4
commit
5a42002243
1 file changed
+3
-3
@@ -447,8 +447,8 @@ const Player = Module("player", {
|
||||
|
||||
SBGetBrowser().loadMediaList(LibraryUtils.mainLibrary, null, null, view,
|
||||
"chrome://songbird/content/mediapages/filtersPage.xul");
|
||||
// TODO: make this this.focusTrack work ?
|
||||
this.focusTrack(view.getItemByIndex(0));
|
||||
// TODO: make this player.focusTrack work ?
|
||||
player.focusTrack(view.getItemByIndex(0));
|
||||
},
|
||||
{
|
||||
argCount: "1",
|
||||
@@ -466,7 +466,7 @@ const Player = Module("player", {
|
||||
for ([, playlist] in Iterator(player.getPlaylists())) {
|
||||
if (util.compareIgnoreCase(arg, playlist.name) == 0) {
|
||||
SBGetBrowser().loadMediaList(playlist);
|
||||
this.focusTrack(this._currentView.getItemByIndex(0));
|
||||
player.focusTrack(player._currentView.getItemByIndex(0));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user