Skip to content

Commit

Permalink
Don't clear clipboard in SetText. (AvaloniaUI#12866)
Browse files Browse the repository at this point in the history
The managed part is responsible for clearing the clipboard, and does so. In addition, `SetBytes` doesn't clear the clipboard.
  • Loading branch information
grokys committed Sep 13, 2023
1 parent 8d3f904 commit 8432059
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions native/Avalonia.Native/src/OSX/clipboard.mm
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ virtual HRESULT SetText (char* type, char* utf8String) override

@autoreleasepool
{
Clear();

auto string = [NSString stringWithUTF8String:(const char*)utf8String];
auto typeString = [NSString stringWithUTF8String:(const char*)type];
if(_item == nil)
Expand Down

0 comments on commit 8432059

Please sign in to comment.