This commit is contained in:
extrawurst 2023-01-13 14:20:11 +01:00
parent dbc75753ee
commit 7c41ca4f51
3 changed files with 1 additions and 11 deletions

View file

@ -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(

View file

@ -105,8 +105,6 @@ pub enum InternalEvent {
///
Push(String, PushType, bool, bool),
///
FetchAll,
///
Pull(String),
///
PushTags,

View file

@ -596,7 +596,7 @@ impl Status {
fn fetch(&self) {
if self.can_pull() {
self.queue.push(InternalEvent::FetchAll);
self.queue.push(InternalEvent::FetchRemotes);
}
}