Skip to content

Commit

Permalink
fix: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanaden committed Jun 28, 2024
1 parent bc93d68 commit f535f89
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions rm-main/src/ui/tabs/torrents/task_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,10 @@ pub enum CurrentTask {
impl CurrentTask {
fn tick(&mut self) -> Option<Action> {
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
}
}

Expand Down

0 comments on commit f535f89

Please sign in to comment.