1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-11 02:14:12 +01:00

Fix track focusing in Melodactyl's :load and :filter.

--HG--
extra : rebase_source : f1aa56b7413a785e601b95da5052e94e851bdfbe
This commit is contained in:
Doug Kearns
2010-10-21 23:08:23 +11:00
parent 377f8b01d4
commit 5a42002243

View File

@@ -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;
}
}