code_review: PR #1416

- Split `DoubleTapped` into two methods: `CheckoutBranchByDecorator` and `CheckoutBranchByCommit`
- Move `DoubleTappedEvent` from whole ListBox to the row tapped actually
- Do nothing if the decorator double-clicked is HEAD
- Code-style

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2025-06-19 11:31:04 +08:00
parent 88fd8f32f1
commit af2b644792
6 changed files with 101 additions and 92 deletions

View File

@@ -810,7 +810,7 @@ namespace SourceGit.ViewModels
};
addToIgnore.Items.Add(byExtensionInSameFolder);
}
}
}
menu.Items.Add(addToIgnore);
hasExtra = true;
@@ -1414,7 +1414,7 @@ namespace SourceGit.ViewModels
menu.Items.Add(explore);
menu.Items.Add(new MenuItem() { Header = "-" });
}
}
var unstage = new MenuItem();
unstage.Header = App.Text("FileCM.UnstageMulti", _selectedStaged.Count);