Git: Fix Linux bindings (#25486)
- Tooltip with binding wasn't showing up - Missing Linux bindings - Commit modal wasn't opening when binding was pressed Release Notes: - N/A --------- Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
parent
b2921bd3fd
commit
ec7ce41324
2 changed files with 23 additions and 18 deletions
|
@ -1059,17 +1059,15 @@ impl GitPanel {
|
|||
}
|
||||
}
|
||||
|
||||
/// Commit all staged changes
|
||||
fn commit(&mut self, _: &git::Commit, window: &mut Window, cx: &mut Context<Self>) {
|
||||
let editor = self.commit_editor.read(cx);
|
||||
if editor.is_empty(cx) {
|
||||
if !editor.focus_handle(cx).contains_focused(window, cx) {
|
||||
editor.focus_handle(cx).focus(window);
|
||||
return;
|
||||
}
|
||||
if self
|
||||
.commit_editor
|
||||
.focus_handle(cx)
|
||||
.contains_focused(window, cx)
|
||||
{
|
||||
self.commit_changes(window, cx)
|
||||
}
|
||||
|
||||
self.commit_changes(window, cx)
|
||||
cx.propagate();
|
||||
}
|
||||
|
||||
pub(crate) fn commit_changes(&mut self, window: &mut Window, cx: &mut Context<Self>) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue