mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Use a more friendly set method for tab control
This commit is contained in:
@ -2,6 +2,7 @@
|
|||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.Linq;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
@ -62,7 +63,7 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
TabControl.AddItem(e.NewValue.ToString());
|
TabControl.AddItem(e.NewValue.ToString());
|
||||||
TabControl.Current.Value = 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;
|
title.Version = e.NewValue.UpdateStream.DisplayName;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user