From 5ef3b372ae30b1010eed656a37eb01466adf5e6d Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Fri, 13 Jun 2025 22:54:34 +0900 Subject: [PATCH] Don't check for updates in DEBUG --- osu.Game/Updater/UpdateManager.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/osu.Game/Updater/UpdateManager.cs b/osu.Game/Updater/UpdateManager.cs index d48d92bdae..ed19828998 100644 --- a/osu.Game/Updater/UpdateManager.cs +++ b/osu.Game/Updater/UpdateManager.cs @@ -87,6 +87,9 @@ namespace osu.Game.Updater /// true if any updates are available, false otherwise. public async Task CheckForUpdateAsync(CancellationToken cancellationToken = default) { + if (!CanCheckForUpdate) + return false; + var cancellation = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); var lastCancellation = Interlocked.Exchange(ref updateCancellation, cancellation);