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