Change property name to CanCheckForUpdate

This commit is contained in:
Craftplacer 2020-05-08 02:50:58 +02:00
parent 3c24ca08d0
commit ebd1df8c28
4 changed files with 8 additions and 5 deletions

View File

@ -22,7 +22,7 @@ namespace osu.Desktop.Updater
{
public class SquirrelUpdateManager : osu.Game.Updater.UpdateManager
{
public override bool CanPerformUpdate => true;
public override bool CanCheckForUpdate => true;
private UpdateManager updateManager;
private NotificationOverlay notificationOverlay;

View File

@ -25,8 +25,8 @@ namespace osu.Game.Overlays.Settings.Sections.General
Bindable = config.GetBindable<ReleaseStream>(OsuSetting.ReleaseStream),
});
// We should only display the button for UpdateManagers that do update the client
if (updateManager != null && updateManager.CanPerformUpdate)
// We should only display the button for UpdateManagers that do check for updates
if (updateManager != null && updateManager.CanCheckForUpdate)
{
Add(new SettingsButton
{

View File

@ -19,7 +19,7 @@ namespace osu.Game.Updater
/// </summary>
public class SimpleUpdateManager : UpdateManager
{
public override bool CanPerformUpdate => true;
public override bool CanCheckForUpdate => true;
private string version;

View File

@ -17,7 +17,10 @@ namespace osu.Game.Updater
/// </summary>
public class UpdateManager : CompositeDrawable
{
public virtual bool CanPerformUpdate => false;
/// <summary>
/// Whether this UpdateManager is capable of checking for updates.
/// </summary>
public virtual bool CanCheckForUpdate => false;
[Resolved]
private OsuConfigManager config { get; set; }