mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 13:37:25 +08:00
Use a more friendly set method for tab control
This commit is contained in:
parent
492dd3eee2
commit
a272004610
@ -2,6 +2,7 @@
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Graphics;
|
||||
@ -62,7 +63,7 @@ namespace osu.Game.Overlays.Changelog
|
||||
TabControl.AddItem(e.NewValue.ToString());
|
||||
TabControl.Current.Value = e.NewValue.ToString();
|
||||
|
||||
Streams.Current.Value = e.NewValue.UpdateStream;
|
||||
Streams.Current.Value = Streams.Items.FirstOrDefault(s => s.Name == e.NewValue.UpdateStream.Name);
|
||||
|
||||
title.Version = e.NewValue.UpdateStream.DisplayName;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user