Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Converters/StringConverters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ public object ConvertBack(object value, Type targetType, object parameter, Cultu
new FuncValueConverter<string, bool>(v => v != null && v.Trim().Length > 0);

public static readonly FuncValueConverter<string, string> ToFriendlyUpstream =
new FuncValueConverter<string, string>(v => v != null ? v.Substring(13) : string.Empty);
new FuncValueConverter<string, string>(v => v is { Length: > 13 } ? v.Substring(13) : string.Empty);
}
}
2 changes: 1 addition & 1 deletion src/Views/LauncherPage.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ private void OnPopupSureByHotKey(object sender, RoutedEventArgs e)
var children = this.GetLogicalDescendants();
foreach (var child in children)
{
if (child is TextBox { IsFocused: true } textBox)
if (child is EnhancedTextBox { IsFocused: true } textBox)
{
var fake = new KeyEventArgs()
{
Expand Down
Loading