Use property instead of type checking

This commit is contained in:
Craftplacer
2020-05-08 02:09:37 +02:00
parent c412afe35b
commit e6ad28a1cb
4 changed files with 8 additions and 2 deletions

View File

@ -25,8 +25,8 @@ namespace osu.Game.Overlays.Settings.Sections.General
Bindable = config.GetBindable<ReleaseStream>(OsuSetting.ReleaseStream),
});
// We shouldn't display the button for the base UpdateManager (without updating logic)
if (updateManager != null && updateManager.GetType() != typeof(UpdateManager))
// We should only display the button for UpdateManagers that do update the client
if (updateManager != null && updateManager.CanPerformUpdate)
{
Add(new SettingsButton
{