Ejemplo n.º 1
0
        private async Task HandleInitialClientInfo()
        {
            var settings = await _locator.GetReadOnlySettingsContext().GetSettings().ConfigureAwait(false);

            var versionInfoChanged  = !Consts.InternalVersion.Equals(settings.Local.CurrentVersion);
            var newVersionInstalled = (settings.Local.CurrentVersion != null) &&
                                      versionInfoChanged;

            if (versionInfoChanged)
            {
                settings.Local.CurrentVersion = Consts.InternalVersion;
                _state = new AppState(AppUpdateState.UpdateInstalled, _state.Version);
            }
            ClientInfo = new ClientInfo(_state, settings.Local.InstalledExtension);
        }