mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 17:08:21 +00:00
cleanup
This commit is contained in:
parent
dbc75753ee
commit
7c41ca4f51
3 changed files with 1 additions and 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(
|
||||
|
|
|
|||
|
|
@ -105,8 +105,6 @@ pub enum InternalEvent {
|
|||
///
|
||||
Push(String, PushType, bool, bool),
|
||||
///
|
||||
FetchAll,
|
||||
///
|
||||
Pull(String),
|
||||
///
|
||||
PushTags,
|
||||
|
|
|
|||
|
|
@ -596,7 +596,7 @@ impl Status {
|
|||
|
||||
fn fetch(&self) {
|
||||
if self.can_pull() {
|
||||
self.queue.push(InternalEvent::FetchAll);
|
||||
self.queue.push(InternalEvent::FetchRemotes);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue