last null check removal

This commit is contained in:
choco
2025-10-16 23:34:10 +02:00
parent f1af6601cc
commit ea8f8e3895

View File

@@ -132,15 +132,7 @@ public class LightlessPlugin : MediatorSubscriberBase, IHostedService
_lightlessConfigService.Current.HasValidSetup() &&
_serverConfigurationManager.HasValidConfig())
{
// Update the last seen version to current version
_lightlessConfigService.Current.LastSeenVersion = currentVersion;
_lightlessConfigService.Save();
// Only show update notes if this isn't the first run
if (!string.IsNullOrEmpty(lastSeen))
{
Mediator.Publish(new UiToggleMessage(typeof(UpdateNotesUi)));
}
Mediator.Publish(new UiToggleMessage(typeof(UpdateNotesUi)));
}
}