diff --git a/LightlessSync/LightlessPlugin.cs b/LightlessSync/LightlessPlugin.cs index 327c4a6..06cb3ef 100644 --- a/LightlessSync/LightlessPlugin.cs +++ b/LightlessSync/LightlessPlugin.cs @@ -128,12 +128,19 @@ public class LightlessPlugin : MediatorSubscriberBase, IHostedService Logger.LogInformation("User has valid setup: {hasValidSetup}", _lightlessConfigService.Current.HasValidSetup()); Logger.LogInformation("Server has valid config: {hasValidConfig}", _serverConfigurationManager.HasValidConfig()); // Show update notes if version has changed and user has valid setup - if (!string.IsNullOrEmpty(lastSeen) && - !string.Equals(lastSeen, currentVersion, StringComparison.Ordinal) && + if (!string.Equals(lastSeen, currentVersion, StringComparison.Ordinal) && _lightlessConfigService.Current.HasValidSetup() && _serverConfigurationManager.HasValidConfig()) { - Mediator.Publish(new UiToggleMessage(typeof(UpdateNotesUi))); + // 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))); + } } }