diff options
author | extrawurst <mail@rusticorn.com> | 2022-11-21 14:45:03 +0100 |
---|---|---|
committer | extrawurst <mail@rusticorn.com> | 2022-11-21 14:45:03 +0100 |
commit | 3fee481e8d8325814fd3b7b45fddd4c0b2038d8f (patch) | |
tree | 446ddb1f77e68f521ac6519070ae400a8dd6191d /src/tabs | |
parent | 3667db37e159a4209d943606f1de9337a3976233 (diff) |
fix status_tree not showing while first status loading
Diffstat (limited to 'src/tabs')
-rw-r--r-- | src/tabs/status.rs | 7 |
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()?; |