Browse Source
Merge pull request #4561 from Ace4896/folder-dialog-title
Win32: Fix Title for Native OpenFolderDialog
pull/4566/head
danwalmsley
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/Windows/Avalonia.Win32/SystemDialogImpl.cs
|
|
|
@ -9,7 +9,6 @@ using Avalonia.Win32.Interop; |
|
|
|
|
|
|
|
namespace Avalonia.Win32 |
|
|
|
{ |
|
|
|
|
|
|
|
class SystemDialogImpl : ISystemDialogImpl |
|
|
|
{ |
|
|
|
private const UnmanagedMethods.FOS DefaultDialogOptions = UnmanagedMethods.FOS.FOS_FORCEFILESYSTEM | UnmanagedMethods.FOS.FOS_NOVALIDATE | |
|
|
|
@ -113,6 +112,7 @@ namespace Avalonia.Win32 |
|
|
|
frm.GetOptions(out options); |
|
|
|
options |= (uint)(UnmanagedMethods.FOS.FOS_PICKFOLDERS | DefaultDialogOptions); |
|
|
|
frm.SetOptions(options); |
|
|
|
frm.SetTitle(dialog.Title ?? ""); |
|
|
|
|
|
|
|
if (dialog.Directory != null) |
|
|
|
{ |
|
|
|
|