summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorextrawurst <mail@rusticorn.com>2023-01-13 14:20:11 +0100
committerextrawurst <mail@rusticorn.com>2023-01-13 14:20:11 +0100
commit7c41ca4f51fc539832f541742a380bcf923cc963 (patch)
treed0d8fc4869db1accaac6ba162e85b44007aa273f
parentdbc75753ee35e8676c9a21416e571b04b4d75fda (diff)
-rw-r--r--src/app.rs8
-rw-r--r--src/queue.rs2
-rw-r--r--src/tabs/status.rs2
3 files changed, 1 insertions, 11 deletions
diff --git a/src/app.rs b/src/app.rs
index 0e0623b7..be0cc917 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -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);
}
}