Improve fake-api

This commit is contained in:
HoutarouOreki
2018-07-20 18:23:25 +02:00
parent c50c946b35
commit b049ffa11d
5 changed files with 18 additions and 31 deletions

View File

@ -41,8 +41,7 @@ namespace osu.Game.Overlays.Changelog
{
Clear();
add(changelog);
//fetchChangelogBuild(changelog);
fetchChangelogBuild();
fetchChangelogBuild(changelog);
}
private void showNext()
@ -69,11 +68,9 @@ namespace osu.Game.Overlays.Changelog
this.api = api;
}
//private void fetchChangelogBuild(APIChangelog build)
private void fetchChangelogBuild()
private void fetchChangelogBuild(APIChangelog build)
{
//var req = new GetChangelogBuildRequest(build.UpdateStream.Name, build.Version);
var req = new GetChangelogBuildRequest();
var req = new GetChangelogBuildRequest(build.UpdateStream.Name, build.Version);
req.Success += res =>
{
currentBuild = res;

View File

@ -108,20 +108,10 @@ namespace osu.Game.Overlays.Changelog
public void UpdateChevronTooltips(string previousVersion, string nextVersion)
{
if (string.IsNullOrEmpty(previousVersion))
chevronPrevious.IsEnabled = false;
else
{
if (!string.IsNullOrEmpty(previousVersion))
chevronPrevious.TooltipText = previousVersion;
chevronPrevious.IsEnabled = true;
}
if (string.IsNullOrEmpty(nextVersion))
chevronNext.IsEnabled = false;
else
{
if (!string.IsNullOrEmpty(nextVersion))
chevronNext.TooltipText = nextVersion;
chevronNext.IsEnabled = true;
}
}
//public ChangelogContentGroup() { } // for listing
}