style<WorkingCopyChanges>: code style

This commit is contained in:
leo 2021-05-08 12:37:20 +08:00
parent da7f824508
commit 8a2a0e57d6

View file

@ -514,14 +514,6 @@ namespace SourceGit.Views.Widgets {
e.Handled = true; e.Handled = true;
}; };
menu.Items.Add(explore);
menu.Items.Add(new Separator());
menu.Items.Add(stage);
menu.Items.Add(discard);
menu.Items.Add(stash);
menu.Items.Add(patch);
menu.Items.Add(new Separator());
if (change != null) {
var history = new MenuItem(); var history = new MenuItem();
history.Header = App.Text("FileHistory"); history.Header = App.Text("FileHistory");
history.Click += (o, e) => { history.Click += (o, e) => {
@ -529,9 +521,16 @@ namespace SourceGit.Views.Widgets {
viewer.Show(); viewer.Show();
e.Handled = true; e.Handled = true;
}; };
menu.Items.Add(explore);
menu.Items.Add(new Separator());
menu.Items.Add(stage);
menu.Items.Add(discard);
menu.Items.Add(stash);
menu.Items.Add(patch);
menu.Items.Add(new Separator());
menu.Items.Add(history); menu.Items.Add(history);
menu.Items.Add(new Separator()); menu.Items.Add(new Separator());
}
menu.Items.Add(copyPath); menu.Items.Add(copyPath);
} else { } else {
var stage = new MenuItem(); var stage = new MenuItem();