init change :)
This commit is contained in:
@@ -103,8 +103,6 @@ public class LightlessPlugin : MediatorSubscriberBase, IHostedService
|
|||||||
UIColors.Initialize(_lightlessConfigService);
|
UIColors.Initialize(_lightlessConfigService);
|
||||||
Mediator.StartQueueProcessing();
|
Mediator.StartQueueProcessing();
|
||||||
|
|
||||||
CheckVersion();
|
|
||||||
|
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -128,6 +126,7 @@ public class LightlessPlugin : MediatorSubscriberBase, IHostedService
|
|||||||
Logger.LogInformation("User has valid setup: {hasValidSetup}", _lightlessConfigService.Current.HasValidSetup());
|
Logger.LogInformation("User has valid setup: {hasValidSetup}", _lightlessConfigService.Current.HasValidSetup());
|
||||||
Logger.LogInformation("Server has valid config: {hasValidConfig}", _serverConfigurationManager.HasValidConfig());
|
Logger.LogInformation("Server has valid config: {hasValidConfig}", _serverConfigurationManager.HasValidConfig());
|
||||||
// Show update notes if version has changed and user has valid setup
|
// Show update notes if version has changed and user has valid setup
|
||||||
|
|
||||||
if (!string.Equals(lastSeen, currentVersion, StringComparison.Ordinal) &&
|
if (!string.Equals(lastSeen, currentVersion, StringComparison.Ordinal) &&
|
||||||
_lightlessConfigService.Current.HasValidSetup() &&
|
_lightlessConfigService.Current.HasValidSetup() &&
|
||||||
_serverConfigurationManager.HasValidConfig())
|
_serverConfigurationManager.HasValidConfig())
|
||||||
@@ -174,6 +173,8 @@ public class LightlessPlugin : MediatorSubscriberBase, IHostedService
|
|||||||
_runtimeServiceScope.ServiceProvider.GetRequiredService<VisibleUserDataDistributor>();
|
_runtimeServiceScope.ServiceProvider.GetRequiredService<VisibleUserDataDistributor>();
|
||||||
_runtimeServiceScope.ServiceProvider.GetRequiredService<NotificationService>();
|
_runtimeServiceScope.ServiceProvider.GetRequiredService<NotificationService>();
|
||||||
_runtimeServiceScope.ServiceProvider.GetRequiredService<NameplateService>();
|
_runtimeServiceScope.ServiceProvider.GetRequiredService<NameplateService>();
|
||||||
|
CheckVersion();
|
||||||
|
|
||||||
#if !DEBUG
|
#if !DEBUG
|
||||||
if (_lightlessConfigService.Current.LogLevel != LogLevel.Information)
|
if (_lightlessConfigService.Current.LogLevel != LogLevel.Information)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user