public override void Initialize() { base.Initialize(); this.WhenAnyValue(x => x.InstalledState) .Skip(1) .Subscribe(x => UpdateContentPaths()); Settings.WhenAnyValue(x => x.ServerMode, x => x.StartupParameters.Server, (x, y) => x || y) .Skip(1) .Subscribe(x => RefreshState()); Settings.WhenAnyValue(x => x.RepositoryDirectory, x => x.ModDirectory, (x, y) => true) .Skip(1) .Subscribe(x => UpdateContentPaths()); Settings.WhenAnyValue(x => x.IncludeServerMods) .Skip(1) .Subscribe(x => CalculatedSettings.Update()); Settings.StartupParameters.Identities = GetProfiles().ToArray(); }
public override void RefreshState() { UpdateInstalledState(); UpdateModPaths(); CalculatedSettings.Update(); }
public virtual void RefreshState() { UpdateInstalledState(); CalculatedSettings.Update(); }