Fix IsAutoUpdateComplete throwing when unloaded

This commit is contained in:
Haselnussbomber 2025-11-11 23:37:10 +01:00
parent f6cd6d31ff
commit bf0bd64faf
No known key found for this signature in database
GPG key ID: BB905BB49E7295D1

View file

@ -103,7 +103,7 @@ internal sealed class DalamudPluginInterface : IDalamudPluginInterface, IDisposa
/// <summary>
/// Gets a value indicating whether auto-updates have already completed this session.
/// </summary>
public bool IsAutoUpdateComplete => Service<AutoUpdateManager>.Get().IsAutoUpdateComplete;
public bool IsAutoUpdateComplete => Service<AutoUpdateManager>.GetNullable()?.IsAutoUpdateComplete ?? false;
/// <summary>
/// Gets the repository from which this plugin was installed.