summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorextrawurst <mail@rusticorn.com>2024-02-19 21:45:03 +0100
committerextrawurst <776816+extrawurst@users.noreply.github.com>2024-02-19 22:16:42 +0100
commit90a109b1dd47b8ecb139d36b886463feabee5864 (patch)
treec348319a41fed869d75dea2c23b53fa68310874a /src
parent8b665a43fcbe66d40ed36be3e96e463ddd34d4dd (diff)
allow fetch in both tabs of branch list
Diffstat (limited to 'src')
-rw-r--r--src/popups/branchlist.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/popups/branchlist.rs b/src/popups/branchlist.rs
index 0b2299d8..7b36ca60 100644
--- a/src/popups/branchlist.rs
+++ b/src/popups/branchlist.rs
@@ -208,7 +208,7 @@ impl Component for BranchListPopup {
out.push(CommandInfo::new(
strings::commands::fetch_remotes(&self.key_config),
self.has_remotes,
- !self.local,
+ true,
));
out.push(CommandInfo::new(
@@ -290,7 +290,7 @@ impl Component for BranchListPopup {
));
}
} else if key_match(e, self.key_config.keys.fetch)
- && !self.local && self.has_remotes
+ && self.has_remotes
{
self.queue.push(InternalEvent::FetchRemotes);
} else if key_match(
@@ -396,7 +396,7 @@ impl BranchListPopup {
}
fn check_remotes(&mut self) {
- if !self.local && self.visible {
+ if self.visible {
self.has_remotes =
get_branches_info(&self.repo.borrow(), false)
.map(|branches| !branches.is_empty())