mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Change property name to CanCheckForUpdate
This commit is contained in:
@ -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; }
|
||||
|
Reference in New Issue
Block a user