mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:52:53 +08:00
Don't show update button when updates are not feasible
This commit is contained in:
parent
d2155c3da3
commit
53b7057ee0
@ -30,7 +30,8 @@ namespace osu.Game.Overlays.Settings.Sections.General
|
||||
Bindable = config.GetBindable<ReleaseStream>(OsuSetting.ReleaseStream),
|
||||
});
|
||||
|
||||
// We should only display the button for UpdateManagers that do check for updates
|
||||
if (updateManager.CanCheckForUpdate)
|
||||
{
|
||||
Add(checkForUpdatesButton = new SettingsButton
|
||||
{
|
||||
Text = "Check for updates",
|
||||
@ -40,6 +41,7 @@ namespace osu.Game.Overlays.Settings.Sections.General
|
||||
Task.Run(updateManager.CheckForUpdateAsync).ContinueWith(t => Schedule(() => checkForUpdatesButton.Enabled.Value = true));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (RuntimeInfo.IsDesktop)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user