mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 21:24:59 +00:00
code_review: PR #515
* remove Linq expressions due to AOT limitations. See https://learn.microsoft.com/zh-cn/dotnet/core/deploying/native-aot/?tabs=windows%2Cnet8#limitations-of-native-aot-deployment * rename `FilteredLocks` to `VisibleLocks` * use `Commands.Config.Get` instead of `Commands.Config.ListAll` * disable checkbox if user name is not valid
This commit is contained in:
parent
21498f7009
commit
5d2a442144
3 changed files with 67 additions and 52 deletions
|
@ -10,6 +10,9 @@ namespace SourceGit.Converters
|
|||
public static readonly FuncValueConverter<IList, string> ToCount =
|
||||
new FuncValueConverter<IList, string>(v => v == null ? " (0)" : $" ({v.Count})");
|
||||
|
||||
public static readonly FuncValueConverter<IList, bool> IsNullOrEmpty =
|
||||
new FuncValueConverter<IList, bool>(v => v == null || v.Count == 0);
|
||||
|
||||
public static readonly FuncValueConverter<IList, bool> IsNotNullOrEmpty =
|
||||
new FuncValueConverter<IList, bool>(v => v != null && v.Count > 0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue