Browse Source
Merge pull request #1702 from AvaloniaUI/fixes/clipboard-settext-win32
fix win32 clipboard settext async.
pull/1710/head
Jumar Macato
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
0 deletions
-
src/Windows/Avalonia.Win32/ClipboardImpl.cs
|
|
|
@ -57,6 +57,9 @@ namespace Avalonia.Win32 |
|
|
|
} |
|
|
|
|
|
|
|
await OpenClipboard(); |
|
|
|
|
|
|
|
UnmanagedMethods.EmptyClipboard(); |
|
|
|
|
|
|
|
try |
|
|
|
{ |
|
|
|
var hGlobal = Marshal.StringToHGlobalUni(text); |
|
|
|
|