mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 12:15:00 +00:00
enhance: remember the height/width of commit list and detail panel in histories page (#472)
This commit is contained in:
parent
6d92b7fc8c
commit
1a4d3d0086
2 changed files with 42 additions and 2 deletions
|
@ -61,6 +61,30 @@ namespace SourceGit.ViewModels
|
|||
set => SetProperty(ref _detailContext, value);
|
||||
}
|
||||
|
||||
public GridLength LeftArea
|
||||
{
|
||||
get => _leftArea;
|
||||
set => SetProperty(ref _leftArea, value);
|
||||
}
|
||||
|
||||
public GridLength RightArea
|
||||
{
|
||||
get => _rightArea;
|
||||
set => SetProperty(ref _rightArea, value);
|
||||
}
|
||||
|
||||
public GridLength TopArea
|
||||
{
|
||||
get => _topArea;
|
||||
set => SetProperty(ref _topArea, value);
|
||||
}
|
||||
|
||||
public GridLength BottomArea
|
||||
{
|
||||
get => _bottomArea;
|
||||
set => SetProperty(ref _bottomArea, value);
|
||||
}
|
||||
|
||||
public Histories(Repository repo)
|
||||
{
|
||||
_repo = repo;
|
||||
|
@ -800,5 +824,10 @@ namespace SourceGit.ViewModels
|
|||
private Models.Commit _autoSelectedCommit = null;
|
||||
private long _navigationId = 0;
|
||||
private object _detailContext = null;
|
||||
|
||||
private GridLength _leftArea = new GridLength(1, GridUnitType.Star);
|
||||
private GridLength _rightArea = new GridLength(1, GridUnitType.Star);
|
||||
private GridLength _topArea = new GridLength(1, GridUnitType.Star);
|
||||
private GridLength _bottomArea = new GridLength(1, GridUnitType.Star);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue