mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-21 10:25:00 +00:00
feature: supports re-order custom actions (#1346)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
ee2e7d0127
commit
98041c803e
5 changed files with 98 additions and 18 deletions
|
@ -304,6 +304,18 @@ namespace SourceGit.ViewModels
|
|||
SelectedCustomAction = null;
|
||||
}
|
||||
|
||||
public void MoveSelectedCustomActionUp()
|
||||
{
|
||||
if (_selectedCustomAction != null)
|
||||
_repo.Settings.MoveCustomActionUp(_selectedCustomAction);
|
||||
}
|
||||
|
||||
public void MoveSelectedCustomActionDown()
|
||||
{
|
||||
if (_selectedCustomAction != null)
|
||||
_repo.Settings.MoveCustomActionDown(_selectedCustomAction);
|
||||
}
|
||||
|
||||
public void Save()
|
||||
{
|
||||
SetIfChanged("user.name", UserName, "");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue