private Action ShowUpdatePage(Func <Update.FabricInstaller.Config> config, UpdateFlow updateFlow) { return(delegate() { if (!Update.PeriodicUpdateManager.Suspend()) { // As an end-user, the probability of seeing this message is low. Utils.Log("Dependency graph refresh is in progress..."); return; } fabricInstaller.SwapConfig(config()); switch (updateFlow) { case UpdateFlow.Plugin: Settings.Instance.FlowSequence = (int)UpdateFlow.Plugin; break; case UpdateFlow.Kit: Settings.Instance.FlowSequence = (int)UpdateFlow.Kit; break; } }); }
private Action ShowUpdatePage(Func<Update.FabricInstaller.Config> config, UpdateFlow updateFlow) { return delegate() { if (!Update.PeriodicUpdateManager.Suspend ()) { // As an end-user, the probability of seeing this message is low. Utils.Log ("Dependency graph refresh is in progress..."); return; } fabricInstaller.SwapConfig (config ()); switch (updateFlow) { case UpdateFlow.Plugin: Settings.Instance.FlowSequence = (int)UpdateFlow.Plugin; break; case UpdateFlow.Kit: Settings.Instance.FlowSequence = (int)UpdateFlow.Kit; break; } }; }