code_style: keep ux/code in a uniform style

This commit is contained in:
leo 2024-05-26 14:35:57 +08:00
parent 66f2aab6a7
commit 8d27690473
4 changed files with 5 additions and 12 deletions

View file

@ -236,11 +236,12 @@ namespace SourceGit.ViewModels
menu.Items.Add(reset);
var checkoutCommit = new MenuItem();
checkoutCommit.Header = new Views.NameHighlightedTextBlock("CommitCM.Checkout", commit.SHA.Substring(0, 10));
checkoutCommit.Header = App.Text("CommitCM.Checkout");
checkoutCommit.Icon = App.CreateMenuIcon("Icons.Check");
checkoutCommit.Click += (o, e) =>
{
_repo.CheckoutCommit(commit);
if (PopupHost.CanCreatePopup())
PopupHost.ShowPopup(new CheckoutCommit(_repo, commit));
e.Handled = true;
};
menu.Items.Add(checkoutCommit);

View file

@ -721,14 +721,6 @@ namespace SourceGit.ViewModels
else
PopupHost.ShowAndStartPopup(new Checkout(this, branch));
}
public void CheckoutCommit(Models.Commit commit)
{
if (!PopupHost.CanCreatePopup())
return;
PopupHost.ShowPopup(new CheckoutCommit(this, commit));
}
public void DeleteMultipleBranches(List<Models.Branch> branches, bool isLocal)
{