Skip to content

Commit 4fca32f

Browse files
authored
fix: split shell exec pattern for terminal file picker on Windows (#2637)
Signed-off-by: weiningwei <weiningwei09@gmail.com>
1 parent 415564b commit 4fca32f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/Views/Preferences.axaml.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,11 @@ private async void SelectShellOrTerminal(object _, RoutedEventArgs e)
341341
{
342342
options = new FilePickerOpenOptions()
343343
{
344-
FileTypeFilter = [new FilePickerFileType(shell.Name) { Patterns = [shell.Exec] }],
344+
FileTypeFilter = [new FilePickerFileType(shell.Name)
345+
{
346+
Patterns = shell.Exec.Split('|',
347+
StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries)
348+
}],
345349
AllowMultiple = false,
346350
};
347351
}

0 commit comments

Comments
 (0)