diff --git a/rm-main/src/ui/tabs/torrents/task_manager.rs b/rm-main/src/ui/tabs/torrents/task_manager.rs index 55e05ab..7794045 100644 --- a/rm-main/src/ui/tabs/torrents/task_manager.rs +++ b/rm-main/src/ui/tabs/torrents/task_manager.rs @@ -47,18 +47,10 @@ pub enum CurrentTask { impl CurrentTask { fn tick(&mut self) -> Option { if let Self::Status(status_bar) = self { - // if let CurrentTaskState::Success(start) = status_bar.task_status { - // let expiration_duration = tokio::time::Duration::from_secs(5); - // if start.elapsed() > expiration_duration { - // *self = CurrentTask::Default(DefaultBar::new(ctx)); - // return Some(Action::Render); - // } else { - // return status_bar.tick(); - // } - // } - return status_bar.tick(); + status_bar.tick() + } else { + None } - None } }