小优化

This commit is contained in:
艾竹
2023-11-29 22:12:56 +08:00
parent 3b2079ac84
commit cab9326843
2 changed files with 2 additions and 1 deletions

View File

@@ -702,7 +702,7 @@ namespace AIStudio.Wpf.DiagramDesigner
{ {
IsInternalChanged = true; IsInternalChanged = true;
startVertice.SetPosition(StartPoint); startVertice.SetPosition(StartPoint);
IsInternalChanged = true; IsInternalChanged = false;
} }
startVertice.ColorViewModel.FillColor.Color = SourceConnectorInfoFully != null ? Colors.DarkRed : Colors.Blue; startVertice.ColorViewModel.FillColor.Color = SourceConnectorInfoFully != null ? Colors.DarkRed : Colors.Blue;
startVertice.ColorViewModel.LineColor.Color = SourceConnectorInfoFully != null ? Colors.DarkRed : Colors.Blue; startVertice.ColorViewModel.LineColor.Color = SourceConnectorInfoFully != null ? Colors.DarkRed : Colors.Blue;

View File

@@ -536,6 +536,7 @@ namespace AIStudio.Wpf.DiagramDesigner
public virtual void Dispose() public virtual void Dispose()
{ {
this.PropertyChanged -= Item_PropertyChanged;
} }
} }
} }