Browse Source

Merge branch 'master' of https://github.com/PixiEditor/PixiEditor

Krzysztof Krysiński 5 days ago
parent
commit
e36459e157

+ 1 - 1
src/Drawie

@@ -1 +1 @@
-Subproject commit 0145d4583f4ac2e20a4658e451e841a9f8397a9e
+Subproject commit 46be7a7eb2a93fc0fade23c8dcca20558209be6f

+ 1 - 1
src/PixiEditor.PixiAuth/PixiAuthClient.cs

@@ -16,7 +16,7 @@ public class PixiAuthClient
     {
         httpClient = new HttpClient();
         httpClient.BaseAddress = new Uri(baseUrl);
-        httpClient.Timeout = TimeSpan.FromSeconds(30);
+        httpClient.Timeout = Timeout.InfiniteTimeSpan;
         if (apiKey != null)
         {
             httpClient.DefaultRequestHeaders.Add("X-API-KEY", apiKey);

+ 4 - 4
src/PixiEditor/Views/Overlays/PathOverlay/VectorPathOverlay.cs

@@ -419,7 +419,7 @@ public class VectorPathOverlay : Overlay
         }
 
         Path = editableVectorPath.ToVectorPath();
-        AddToUndoCommand.Execute(Path);
+        AddToUndoCommand?.Execute(Path);
     }
 
     private void CreateHandle(int atIndex, bool isControlPoint = false)
@@ -529,7 +529,7 @@ public class VectorPathOverlay : Overlay
         if (IsOverPath(args.Point, out VecD closestPoint))
         {
             AddPointAt(closestPoint);
-            AddToUndoCommand.Execute(Path);
+            AddToUndoCommand?.Execute(Path);
             args.Handled = true;
         }
         else if (args.Modifiers == KeyModifiers.None)
@@ -541,7 +541,7 @@ public class VectorPathOverlay : Overlay
                 converted = false;
             }
 
-            AddToUndoCommand.Execute(Path);
+            AddToUndoCommand?.Execute(Path);
         }
     }
 
@@ -875,7 +875,7 @@ public class VectorPathOverlay : Overlay
 
     private void OnHandleRelease(Handle source, OverlayPointerArgs args)
     {
-        AddToUndoCommand.Execute(Path);
+        AddToUndoCommand?.Execute(Path);
 
         if (source is AnchorHandle anchorHandle)
         {