Show git panel footer even when on a detached HEAD (#25968)
Previously, the git panel footer would accidentally hide when not on a branch. Release Notes: - N/A Co-authored-by: Ben Kunkle <ben.kunkle@gmail.com>
This commit is contained in:
parent
fc5ff318e3
commit
922aaa0534
1 changed files with 2 additions and 2 deletions
|
@ -2006,7 +2006,7 @@ impl GitPanel {
|
|||
};
|
||||
let editor_focus_handle = self.commit_editor.focus_handle(cx);
|
||||
|
||||
let branch = active_repo.read(cx).current_branch()?.clone();
|
||||
let branch = active_repo.read(cx).current_branch().cloned();
|
||||
|
||||
let footer_size = px(32.);
|
||||
let gap = px(8.0);
|
||||
|
@ -2027,7 +2027,7 @@ impl GitPanel {
|
|||
.child(PanelRepoFooter::new(
|
||||
"footer-button",
|
||||
display_name,
|
||||
Some(branch),
|
||||
branch,
|
||||
Some(git_panel),
|
||||
Some(branches),
|
||||
))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue