protected override void DidActivate(bool firstActivation, ActivationType activationType) { if (firstActivation) { //firstLoad = Plugin.config.GetBoolean("behavior", "onstartup") ?? true; title = "BSMOTD Plus"; _postList = BeatSaberUI.CreateViewController <PostListViewController>(); _postDetail = BeatSaberUI.CreateViewController <PostDetailViewController>(); _channels = BeatSaberUI.CreateViewController <ChannelsViewController>(); _settings = BeatSaberUI.CreateViewController <SettingsViewController>(); _navCon = BeatSaberUI.CreateDismissableNavigationController(); _postList.newPostClicked += ClickedPost; _channels.newChannelClicked += ClickedChannel; _navCon.didFinishEvent += Dismiss; } if (activationType == ActivationType.AddedToHierarchy) { SetViewControllersToNavigationConctroller(_navCon, _postList); ProvideInitialViewControllers(_navCon, _channels, _settings); firstClick = true; channels.Clear(); SharedCoroutineStarter.instance.StartCoroutine(GetChannelInfo()); } }