diff options
author | extrawurst <mail@rusticorn.com> | 2023-01-13 14:20:11 +0100 |
---|---|---|
committer | extrawurst <mail@rusticorn.com> | 2023-01-13 14:20:11 +0100 |
commit | 7c41ca4f51fc539832f541742a380bcf923cc963 (patch) | |
tree | d0d8fc4869db1accaac6ba162e85b44007aa273f | |
parent | dbc75753ee35e8676c9a21416e571b04b4d75fda (diff) |
cleanupalensiljak-status-fetch
-rw-r--r-- | src/app.rs | 8 | ||||
-rw-r--r-- | src/queue.rs | 2 | ||||
-rw-r--r-- | src/tabs/status.rs | 2 |
3 files changed, 1 insertions, 11 deletions
@@ -851,14 +851,6 @@ impl App { .push(branch, push_type, force, delete)?; flags.insert(NeedsUpdate::ALL); } - InternalEvent::FetchAll => { - if let Err(error) = self.fetch_popup.fetch() { - self.queue.push(InternalEvent::ShowErrorMsg( - error.to_string(), - )); - } - flags.insert(NeedsUpdate::ALL); - } InternalEvent::Pull(branch) => { if let Err(error) = self.pull_popup.fetch(branch) { self.queue.push(InternalEvent::ShowErrorMsg( diff --git a/src/queue.rs b/src/queue.rs index bbf7b2a7..dd033bed 100644 --- a/src/queue.rs +++ b/src/queue.rs @@ -105,8 +105,6 @@ pub enum InternalEvent { /// Push(String, PushType, bool, bool), /// - FetchAll, - /// Pull(String), /// PushTags, diff --git a/src/tabs/status.rs b/src/tabs/status.rs index 49133b07..428daef0 100644 --- a/src/tabs/status.rs +++ b/src/tabs/status.rs @@ -596,7 +596,7 @@ impl Status { fn fetch(&self) { if self.can_pull() { - self.queue.push(InternalEvent::FetchAll); + self.queue.push(InternalEvent::FetchRemotes); } } |