Skip to content

Commit 26d63a3

Browse files
author
Stephan Dilly
committed
show progress in spinner when push/pull is ongoing
1 parent 49316ba commit 26d63a3

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

src/app.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,8 @@ impl App {
329329
|| self.stashing_tab.anything_pending()
330330
|| self.inspect_commit_popup.any_work_pending()
331331
|| self.input.is_state_changing()
332+
|| self.push_popup.any_work_pending()
333+
|| self.fetch_popup.any_work_pending()
332334
}
333335

334336
///

src/components/pull.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ impl PullComponent {
103103
Ok(())
104104
}
105105

106+
///
107+
pub fn any_work_pending(&self) -> bool {
108+
self.pending
109+
}
110+
106111
///
107112
pub fn update_git(
108113
&mut self,

src/components/push.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ impl PushComponent {
144144
Ok(())
145145
}
146146

147+
///
148+
pub fn any_work_pending(&self) -> bool {
149+
self.pending
150+
}
151+
152+
///
147153
pub fn get_progress(
148154
progress: &Option<RemoteProgress>,
149155
) -> (String, u8) {

0 commit comments

Comments
 (0)