mirror of
https://github.com/ppy/osu.git
synced 2026-05-13 19:54:15 +08:00
Fix opening changelog overlay from settings in development (#37602)
Just a small fix for crash that occures when clicking `local debug` in settings footer.
This commit is contained in:
committed by
GitHub
Unverified
parent
2006485d60
commit
27f6e94bf0
@@ -82,11 +82,16 @@ namespace osu.Game.Overlays
|
||||
|
||||
Show();
|
||||
|
||||
string[] split = version.Split('-');
|
||||
|
||||
if (split.Length < 2)
|
||||
return;
|
||||
|
||||
string versionPart = split[0];
|
||||
string updateStream = split[1];
|
||||
|
||||
performAfterFetch(() =>
|
||||
{
|
||||
string versionPart = version.Split('-')[0];
|
||||
string updateStream = version.Split('-')[1];
|
||||
|
||||
var build = builds.Find(b => b.Version == versionPart && b.UpdateStream.Name == updateStream)
|
||||
?? Streams.Find(s => s.Name == updateStream)?.LatestBuild;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user