We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d455fed commit a75a9ddCopy full SHA for a75a9dd
PasteIntoFile/ClipboardContents.cs
@@ -836,9 +836,8 @@ public static ClipboardContents FromClipboard() {
836
}
837
838
// Image from encoded data uri
839
- if (Clipboard.ContainsText())
840
- {
841
- var (mime_ext, bytes) = BytesFromDataUri(Clipboard.GetText());
+ if (Clipboard.ContainsText()) {
+ var (mime_ext, bytes) = BytesFromDataUri(Clipboard.GetText());
842
if (bytes != null && !images.ContainsKey(mime_ext))
843
if (ImageContentFromBytes(mime_ext, bytes) is ImageLikeContent imageContent)
844
images.Add(mime_ext, imageContent);
0 commit comments