mirror of
https://github.com/gitui-org/gitui.git
synced 2026-10-12 02:14:16 +00:00
cleanup
This commit is contained in:
@@ -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,
|
||||
|
||||
+1
-1
@@ -596,7 +596,7 @@ impl Status {
|
||||
|
||||
fn fetch(&self) {
|
||||
if self.can_pull() {
|
||||
self.queue.push(InternalEvent::FetchAll);
|
||||
self.queue.push(InternalEvent::FetchRemotes);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user