summaryrefslogtreecommitdiffstats
path: root/src/tabs/status.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tabs/status.rs')
-rw-r--r--src/tabs/status.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tabs/status.rs b/src/tabs/status.rs
index eab771df..544986df 100644
--- a/src/tabs/status.rs
+++ b/src/tabs/status.rs
@@ -427,6 +427,7 @@ impl Status {
}
fn check_remotes(&mut self) {
+ //TODO: make get_branches_info async
self.has_remotes =
sync::get_branches_info(&self.repo.borrow(), false)
.map(|branches| !branches.is_empty())
@@ -965,10 +966,16 @@ impl Component for Status {
fn hide(&mut self) {
self.visible = false;
+
+ self.index.hide();
+ self.index_wd.hide();
}
fn show(&mut self) -> Result<()> {
self.visible = true;
+ self.index.show()?;
+ self.index_wd.show()?;
+
self.check_remotes();
self.update()?;