diff --git a/src/Models/RepositoryUIStates.cs b/src/Models/RepositoryUIStates.cs index 8657b93b6..2cf2505de 100644 --- a/src/Models/RepositoryUIStates.cs +++ b/src/Models/RepositoryUIStates.cs @@ -39,6 +39,9 @@ public bool IsCommitTimeColumnVisibleInHistory set; } = true; + // Source-column indexes in display order, including hidden columns. + public List HistoryColumnOrder { get; set; } = []; + public double AuthorColumnWidth { get; diff --git a/src/ViewModels/Histories.cs b/src/ViewModels/Histories.cs index 128b53ff9..39102da0e 100644 --- a/src/ViewModels/Histories.cs +++ b/src/ViewModels/Histories.cs @@ -204,6 +204,12 @@ public GridLength BottomArea } } + public List ColumnOrder + { + get => _repo.UIStates.HistoryColumnOrder; + set => _repo.UIStates.HistoryColumnOrder = value; + } + public double AuthorColumnWidth { get => _repo.UIStates.AuthorColumnWidth; diff --git a/src/Views/Histories.axaml b/src/Views/Histories.axaml index a3d24529f..d17f6e3b4 100644 --- a/src/Views/Histories.axaml +++ b/src/Views/Histories.axaml @@ -23,7 +23,7 @@ - + -