fix warnings

This commit is contained in:
extrawurst 2023-01-13 14:18:49 +01:00
parent 27e4446398
commit dbc75753ee
3 changed files with 5 additions and 7 deletions

View file

@ -851,10 +851,8 @@ impl App {
.push(branch, push_type, force, delete)?;
flags.insert(NeedsUpdate::ALL);
}
InternalEvent::Fetch(branch) => {
if let Err(error) = self.fetch_popup.fetch()
// .fetch(branch)
{
InternalEvent::FetchAll => {
if let Err(error) = self.fetch_popup.fetch() {
self.queue.push(InternalEvent::ShowErrorMsg(
error.to_string(),
));

View file

@ -105,7 +105,7 @@ pub enum InternalEvent {
///
Push(String, PushType, bool, bool),
///
Fetch(String),
FetchAll,
///
Pull(String),
///

View file

@ -595,8 +595,8 @@ impl Status {
}
fn fetch(&self) {
if let Some(branch) = self.git_branch_name.last() {
self.queue.push(InternalEvent::Fetch(branch));
if self.can_pull() {
self.queue.push(InternalEvent::FetchAll);
}
}