style<Dashboard>: move histories layout direction button to dashboard toolbar

This commit is contained in:
leo 2021-10-08 17:06:04 +08:00
parent 7c44c0a840
commit 902e28c41c
5 changed files with 27 additions and 47 deletions

View file

@ -21,7 +21,7 @@ namespace SourceGit.Views.Widgets {
this.repo = repo;
InitializeComponent();
ChangeOrientation(null, null);
ChangeOrientation();
Unloaded += (o, e) => {
cachedCommits.Clear();
@ -103,7 +103,7 @@ namespace SourceGit.Views.Widgets {
#endregion
#region LAYOUT
private void ChangeOrientation(object sender, RoutedEventArgs e) {
public void ChangeOrientation() {
if (layout == null || commitListPanel == null || inspector == null || splitter == null) return;
layout.RowDefinitions.Clear();