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 c60bd93 commit 8ace019Copy full SHA for 8ace019
PasteIntoFile/ClipboardContents.cs
@@ -814,9 +814,7 @@ 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)
818
-
819
- {
+ if (Clipboard.ContainsFileDropList() && Clipboard.GetFileDropList() is StringCollection files && files.Count == 1) {
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