check if completed intro setup process
This commit is contained in:
@@ -167,8 +167,10 @@ public class LightlessPlugin : MediatorSubscriberBase, IHostedService
|
|||||||
}
|
}
|
||||||
else if (!string.Equals(lastSeen, currentVersion, StringComparison.Ordinal))
|
else if (!string.Equals(lastSeen, currentVersion, StringComparison.Ordinal))
|
||||||
{
|
{
|
||||||
// TODO: actually check if setup is complete
|
if (_lightlessConfigService.Current.HasValidSetup() && _serverConfigurationManager.HasValidConfig())
|
||||||
Mediator.Publish(new UiToggleMessage(typeof(UpdateNotesUi)));
|
{
|
||||||
|
Mediator.Publish(new UiToggleMessage(typeof(UpdateNotesUi)));
|
||||||
|
}
|
||||||
_lightlessConfigService.Current.LastSeenVersion = currentVersion;
|
_lightlessConfigService.Current.LastSeenVersion = currentVersion;
|
||||||
_lightlessConfigService.Save();
|
_lightlessConfigService.Save();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user