From 1ca80b54699046936b425f1b18b53ab567f94474 Mon Sep 17 00:00:00 2001 From: aidanaden Date: Fri, 28 Jun 2024 19:55:27 +0800 Subject: [PATCH] fix: spacing --- rm-main/src/transmission/action.rs | 1 - rm-main/src/ui/tabs/torrents/task_manager.rs | 1 - rm-main/src/ui/tabs/torrents/tasks/status.rs | 1 - 3 files changed, 3 deletions(-) diff --git a/rm-main/src/transmission/action.rs b/rm-main/src/transmission/action.rs index 70ea5c2..e4808a7 100644 --- a/rm-main/src/transmission/action.rs +++ b/rm-main/src/transmission/action.rs @@ -78,7 +78,6 @@ pub async fn action_handler(ctx: app::Ctx, mut trans_rx: UnboundedReceiver { diff --git a/rm-main/src/ui/tabs/torrents/task_manager.rs b/rm-main/src/ui/tabs/torrents/task_manager.rs index 7794045..96d0e0d 100644 --- a/rm-main/src/ui/tabs/torrents/task_manager.rs +++ b/rm-main/src/ui/tabs/torrents/task_manager.rs @@ -61,7 +61,6 @@ impl Component for TaskManager { match &mut self.current_task { CurrentTask::AddMagnetBar(magnet_bar) => match magnet_bar.handle_actions(action) { Some(A::TaskPending(task)) => self.pending_task(task), - Some(A::Quit) => self.cancel_task(), Some(A::Render) => Some(A::Render), _ => None, diff --git a/rm-main/src/ui/tabs/torrents/tasks/status.rs b/rm-main/src/ui/tabs/torrents/tasks/status.rs index 4af94a5..3bbb2e9 100644 --- a/rm-main/src/ui/tabs/torrents/tasks/status.rs +++ b/rm-main/src/ui/tabs/torrents/tasks/status.rs @@ -83,7 +83,6 @@ impl Component for StatusBar { } _ => return, } - line.push_span(Span::raw(status_text)); let paragraph = Paragraph::new(line); f.render_widget(paragraph, rect);