mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 20:54:59 +00:00
ux: style of tab switch in file histories view
This commit is contained in:
parent
699bfe8208
commit
2346082228
4 changed files with 27 additions and 76 deletions
|
@ -41,12 +41,12 @@ namespace SourceGit.ViewModels
|
|||
}
|
||||
}
|
||||
|
||||
public int ViewMode
|
||||
public bool IsViewContent
|
||||
{
|
||||
get => _viewMode;
|
||||
get => _isViewContent;
|
||||
set
|
||||
{
|
||||
if (SetProperty(ref _viewMode, value))
|
||||
if (SetProperty(ref _isViewContent, value))
|
||||
RefreshViewContent();
|
||||
}
|
||||
}
|
||||
|
@ -93,10 +93,10 @@ namespace SourceGit.ViewModels
|
|||
return;
|
||||
}
|
||||
|
||||
if (_viewMode == 0)
|
||||
SetViewContentAsDiff();
|
||||
else
|
||||
if (_isViewContent)
|
||||
SetViewContentAsRevisionFile();
|
||||
else
|
||||
SetViewContentAsDiff();
|
||||
}
|
||||
|
||||
private void SetViewContentAsRevisionFile()
|
||||
|
@ -197,7 +197,7 @@ namespace SourceGit.ViewModels
|
|||
private bool _isLoading = true;
|
||||
private List<Models.Commit> _commits = null;
|
||||
private Models.Commit _selectedCommit = null;
|
||||
private int _viewMode = 0;
|
||||
private bool _isViewContent = false;
|
||||
private object _viewContent = null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue