internal void Setup(MimeModule mimes) { base.Setup(); TagsFilterSelections = new List <TypedItem>(Enumerable.Range(1, 15).Select(i => new TypedItem(i.ToString(), i)).Reverse()); if (model.Queries == null || model.Queries.Count == 0) { model.Queries = new List <Query>().Default(Settings.Settings.Domains); } AllQueries = new ObservableCollection <QueryViewModel>(from x in model.Queries select new QueryViewModel(x)); Mimes = mimes.Items; Paths.Build(Settings, model.Items); ApplyPreferences(); if (Indexer != null && !Indexer.IsInitialized) { Indexer.Index(model.Items); } Resolver.Load(model.Items); if (UserPreferences.TryGet <string>(ModuleKey, "recent-tags", out string recentTags)) { var tags = recentTags.Split(new char[] { ';', '|' }, StringSplitOptions.RemoveEmptyEntries); Resolver.SetRecentTags(tags); } }