mirror of
https://github.com/ppy/osu
synced 2024-12-30 19:02:27 +00:00
Change property name to CanCheckForUpdate
This commit is contained in:
parent
3c24ca08d0
commit
ebd1df8c28
@ -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;
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user