From 8a3902ec2b38bd0643d0e712adb7759c99d4f461 Mon Sep 17 00:00:00 2001 From: choco Date: Thu, 16 Oct 2025 23:44:15 +0200 Subject: [PATCH] init change :) --- LightlessSync/LightlessPlugin.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LightlessSync/LightlessPlugin.cs b/LightlessSync/LightlessPlugin.cs index 5d74e01..fe7e9a4 100644 --- a/LightlessSync/LightlessPlugin.cs +++ b/LightlessSync/LightlessPlugin.cs @@ -103,8 +103,6 @@ public class LightlessPlugin : MediatorSubscriberBase, IHostedService UIColors.Initialize(_lightlessConfigService); Mediator.StartQueueProcessing(); - CheckVersion(); - return Task.CompletedTask; } @@ -128,6 +126,7 @@ 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.Equals(lastSeen, currentVersion, StringComparison.Ordinal) && _lightlessConfigService.Current.HasValidSetup() && _serverConfigurationManager.HasValidConfig()) @@ -174,6 +173,8 @@ public class LightlessPlugin : MediatorSubscriberBase, IHostedService _runtimeServiceScope.ServiceProvider.GetRequiredService(); _runtimeServiceScope.ServiceProvider.GetRequiredService(); _runtimeServiceScope.ServiceProvider.GetRequiredService(); + CheckVersion(); + #if !DEBUG if (_lightlessConfigService.Current.LogLevel != LogLevel.Information) {