mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-16 16:05:00 +00:00
ux: disable commit button when commit message is empty
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
7cda7211f1
commit
da38b72ee5
3 changed files with 31 additions and 11 deletions
|
@ -81,5 +81,8 @@ namespace SourceGit.Converters
|
|||
|
||||
public static readonly FuncValueConverter<string, bool> ContainsSpaces =
|
||||
new FuncValueConverter<string, bool>(v => v != null && v.Contains(' '));
|
||||
|
||||
public static readonly FuncValueConverter<string, bool> IsNotNullOrWhitespace =
|
||||
new FuncValueConverter<string, bool>(v => v != null && v.Trim().Length > 0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue