last null check removal
This commit is contained in:
@@ -132,15 +132,7 @@ public class LightlessPlugin : MediatorSubscriberBase, IHostedService
|
|||||||
_lightlessConfigService.Current.HasValidSetup() &&
|
_lightlessConfigService.Current.HasValidSetup() &&
|
||||||
_serverConfigurationManager.HasValidConfig())
|
_serverConfigurationManager.HasValidConfig())
|
||||||
{
|
{
|
||||||
// Update the last seen version to current version
|
Mediator.Publish(new UiToggleMessage(typeof(UpdateNotesUi)));
|
||||||
_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)));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user