mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09: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 class SquirrelUpdateManager : osu.Game.Updater.UpdateManager
|
||||||
{
|
{
|
||||||
public override bool CanPerformUpdate => true;
|
public override bool CanCheckForUpdate => true;
|
||||||
|
|
||||||
private UpdateManager updateManager;
|
private UpdateManager updateManager;
|
||||||
private NotificationOverlay notificationOverlay;
|
private NotificationOverlay notificationOverlay;
|
||||||
|
@ -25,8 +25,8 @@ namespace osu.Game.Overlays.Settings.Sections.General
|
|||||||
Bindable = config.GetBindable<ReleaseStream>(OsuSetting.ReleaseStream),
|
Bindable = config.GetBindable<ReleaseStream>(OsuSetting.ReleaseStream),
|
||||||
});
|
});
|
||||||
|
|
||||||
// We should only display the button for UpdateManagers that do update the client
|
// We should only display the button for UpdateManagers that do check for updates
|
||||||
if (updateManager != null && updateManager.CanPerformUpdate)
|
if (updateManager != null && updateManager.CanCheckForUpdate)
|
||||||
{
|
{
|
||||||
Add(new SettingsButton
|
Add(new SettingsButton
|
||||||
{
|
{
|
||||||
|
@ -19,7 +19,7 @@ namespace osu.Game.Updater
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class SimpleUpdateManager : UpdateManager
|
public class SimpleUpdateManager : UpdateManager
|
||||||
{
|
{
|
||||||
public override bool CanPerformUpdate => true;
|
public override bool CanCheckForUpdate => true;
|
||||||
|
|
||||||
private string version;
|
private string version;
|
||||||
|
|
||||||
|
@ -17,7 +17,10 @@ namespace osu.Game.Updater
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class UpdateManager : CompositeDrawable
|
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]
|
[Resolved]
|
||||||
private OsuConfigManager config { get; set; }
|
private OsuConfigManager config { get; set; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user