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 87a7446 commit f053b29Copy full SHA for f053b29
PasteIntoFile/ClipboardContents.cs
@@ -814,7 +814,9 @@ public static ClipboardContents FromClipboard() {
814
var images = new Dict<string, ImageLikeContent>();
815
816
// Generic image from file
817
- if (Clipboard.ContainsFileDropList() && Clipboard.GetFileDropList() is StringCollection files && files.Count == 1) {
+ if ( Clipboard.ContainsFileDropList() && Clipboard.GetFileDropList() is StringCollection files && files.Count == 1)
818
+
819
+ {
820
var ext = BaseContent.NormalizeExtension(Path.GetExtension(files[0]).Trim('.'));
821
if (ImageContentFromBytes(ext, File.ReadAllBytes(files[0])) is ImageLikeContent imageContent)
822
images.Add(ext, imageContent);
0 commit comments