fix<Histories>: fix wrong context menu items for current branch

This commit is contained in:
leo 2021-04-29 21:40:15 +08:00
parent 672af4527e
commit ee8efa5c47

View file

@ -285,6 +285,7 @@ namespace SourceGit.Views.Widgets {
e.Handled = true; e.Handled = true;
}; };
menu.Items.Add(reset); menu.Items.Add(reset);
}
if (!merged) { if (!merged) {
var rebase = new MenuItem(); var rebase = new MenuItem();
@ -313,7 +314,6 @@ namespace SourceGit.Views.Widgets {
} }
menu.Items.Add(new Separator()); menu.Items.Add(new Separator());
}
var createBranch = new MenuItem(); var createBranch = new MenuItem();
createBranch.Header = App.Text("CreateBranch"); createBranch.Header = App.Text("CreateBranch");