mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 01:18:21 +00:00
fix warnings
This commit is contained in:
parent
27e4446398
commit
dbc75753ee
3 changed files with 5 additions and 7 deletions
|
|
@ -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(),
|
||||
));
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ pub enum InternalEvent {
|
|||
///
|
||||
Push(String, PushType, bool, bool),
|
||||
///
|
||||
Fetch(String),
|
||||
FetchAll,
|
||||
///
|
||||
Pull(String),
|
||||
///
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue