Browse Source

fixed invalid thread for clipboard task

Krzysztof Krysiński 3 months ago
parent
commit
0c59160022
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/PixiEditor/Views/Windows/HelloTherePopup.axaml.cs
  2. 1 1
      src/global.json

+ 1 - 1
src/PixiEditor/Views/Windows/HelloTherePopup.axaml.cs

@@ -227,7 +227,7 @@ internal partial class HelloTherePopup : PixiEditorPopup
 
 
     private void CheckHasClipboardInImage()
     private void CheckHasClipboardInImage()
     {
     {
-        Task.Run(async () =>
+        Dispatcher.UIThread.InvokeAsync(async () =>
         {
         {
             hasImageInClipboard = await ClipboardController.IsImageInClipboard();
             hasImageInClipboard = await ClipboardController.IsImageInClipboard();
         }).ContinueWith(_ =>
         }).ContinueWith(_ =>

+ 1 - 1
src/global.json

@@ -1,7 +1,7 @@
 {
 {
   "sdk": {
   "sdk": {
     "version": "8.0.405",
     "version": "8.0.405",
-    "rollForward": "latestMajor",
+    "rollForward": "latestMinor",
     "allowPrerelease": false
     "allowPrerelease": false
   }
   }
 }
 }