mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 12:15:00 +00:00
ux: improve change list selection
This commit is contained in:
parent
2f5f98770f
commit
ef0c904e91
5 changed files with 132 additions and 88 deletions
|
@ -301,11 +301,13 @@ namespace SourceGit.ViewModels
|
|||
public void StageSelected()
|
||||
{
|
||||
StageChanges(_selectedUnstaged);
|
||||
SelectedUnstaged = [];
|
||||
}
|
||||
|
||||
public void StageAll()
|
||||
{
|
||||
StageChanges(_unstaged);
|
||||
SelectedUnstaged = [];
|
||||
}
|
||||
|
||||
public async void StageChanges(List<Models.Change> changes)
|
||||
|
@ -337,11 +339,13 @@ namespace SourceGit.ViewModels
|
|||
public void UnstageSelected()
|
||||
{
|
||||
UnstageChanges(_selectedStaged);
|
||||
SelectedStaged = [];
|
||||
}
|
||||
|
||||
public void UnstageAll()
|
||||
{
|
||||
UnstageChanges(_staged);
|
||||
SelectedStaged = [];
|
||||
}
|
||||
|
||||
public async void UnstageChanges(List<Models.Change> changes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue