fix<CreateBranch>: fix branch name binding issue

This commit is contained in:
leo 2021-04-30 17:03:22 +08:00
parent c7c0c07062
commit db9d8c8e99
2 changed files with 9 additions and 0 deletions

View file

@ -117,6 +117,14 @@ namespace SourceGit.Commands {
}
}
decorators.Sort((l, r) => {
if (l.Type != r.Type) {
return (int)l.Type - (int)r.Type;
} else {
return l.Name.CompareTo(r.Name);
}
});
return isHeadOfCurrent;
}

View file

@ -1,5 +1,6 @@
<controls:PopupWidget
x:Class="SourceGit.Views.Popups.CreateBranch"
x:Name="me"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"