Merge pull request #6407 from UselessToucan/playlist_follow_playback

Autoscroll playlist on song change
This commit is contained in:
Dean Herbert 2019-10-08 11:07:45 +09:00 committed by GitHub
commit 0d0321674e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -109,7 +109,11 @@ private void removeBeatmapSet(BeatmapSetInfo obj)
private void updateSelectedSet()
{
foreach (PlaylistItem s in items.Children)
{
s.Selected = s.BeatmapSetInfo.ID == beatmapBacking.Value.BeatmapSetInfo?.ID;
if (s.Selected)
ScrollIntoView(s);
}
}
public string SearchTerm

View File

@ -19,7 +19,7 @@ public AudioSection()
new AudioDevicesSettings(),
new VolumeSettings(),
new OffsetSettings(),
new MainMenuSettings(),
new MainMenuSettings()
};
}
}