/// <summary> /// Removes the upgrading given task. /// </summary> /// <param name="p_tskTask">BasicInstallTask task to remove.</param> public void RemoveQueuedTaskUpg(ModUpgrader p_tskTask) { if (ModActivationMonitor.CanRemoveQueuedUpg(p_tskTask)) { ModActivationMonitor.RemoveQueuedTaskUpg(p_tskTask); } }
/// <summary> /// Removes the upgrading given task. /// </summary> /// <param name="p_tskTask">BasicInstallTask task to remove.</param> public void RemoveSelectedTaskUpg(ModUpgrader p_tskTask) { if (ModActivationMonitor.CanRemoveSelectedUpg(p_tskTask)) { if (p_tskTask.IsCompleted) { ModActivationMonitor.RemoveTaskUpg(p_tskTask); } else if (p_tskTask.IsQueued) { ModActivationMonitor.RemoveQueuedTaskUpg(p_tskTask); } } }