mirror of https://github.com/ppy/osu
Remove weird local sample logic in `ChangelogOverlay`
This commit is contained in:
parent
e098cac1cf
commit
d9ea8d64d4
|
@ -25,8 +25,6 @@ public class ChangelogOverlay : OnlineOverlay<ChangelogHeader>
|
|||
|
||||
public readonly Bindable<APIChangelogBuild> Current = new Bindable<APIChangelogBuild>();
|
||||
|
||||
private Sample sampleBack;
|
||||
|
||||
private List<APIChangelogBuild> builds;
|
||||
|
||||
protected List<APIUpdateStream> Streams;
|
||||
|
@ -41,8 +39,6 @@ private void load(AudioManager audio)
|
|||
{
|
||||
Header.Build.BindTarget = Current;
|
||||
|
||||
sampleBack = audio.Samples.Get(@"UI/generic-select-soft");
|
||||
|
||||
Current.BindValueChanged(e =>
|
||||
{
|
||||
if (e.NewValue != null)
|
||||
|
@ -108,7 +104,6 @@ public override bool OnPressed(GlobalAction action)
|
|||
else
|
||||
{
|
||||
Current.Value = null;
|
||||
sampleBack?.Play();
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue