mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 04:04:59 +00:00
enhance: keep repository tree sorted by name
This commit is contained in:
parent
15456f0dee
commit
207e82b391
2 changed files with 45 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SourceGit.ViewModels
|
||||
|
@ -50,8 +49,13 @@ namespace SourceGit.ViewModels
|
|||
|
||||
public override Task<bool> Sure()
|
||||
{
|
||||
bool needSort = _node.Name != _name;
|
||||
_node.Name = _name;
|
||||
_node.Bookmark = _bookmark;
|
||||
|
||||
if (needSort)
|
||||
Preference.SortByRenamedNode(_node);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue