Skip to content

Commit

Permalink
final draft
Browse files Browse the repository at this point in the history
  • Loading branch information
ivaylo-matov committed Apr 17, 2024
1 parent df0638e commit 18b58f1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 12 deletions.
4 changes: 0 additions & 4 deletions src/DynamoCore/Graph/Annotations/AnnotationModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,6 @@ public bool IsExpanded
get { return isExpanded; }
set
{
// ip comment:
// this is called on undo!
// at the moment IsCollapsed is not called in the VM
// need to RaiseProperty changed from here?
isExpanded = value;
UpdateBoundaryFromSelection();
UpdateErrorAndWarningIconVisibility();
Expand Down
2 changes: 0 additions & 2 deletions src/DynamoCore/Graph/Workspaces/WorkspaceModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2081,8 +2081,6 @@ internal void SendModelEvent(Guid modelGuid, string eventName, int value)
HasUnsavedChanges = true;
}


// ip comment : this must be called ?
internal void UpdateModelValue(IEnumerable<Guid> modelGuids, string propertyName, string value)
{
if (modelGuids == null || (!modelGuids.Any()))
Expand Down
6 changes: 2 additions & 4 deletions src/DynamoCoreWpf/ViewModels/Core/AnnotationViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
using System.Windows.Input;
using System.Windows.Media;
using Dynamo.Configuration;
using Dynamo.Core;
using Dynamo.Graph;
using Dynamo.Graph.Annotations;
using Dynamo.Graph.Nodes;
using Dynamo.Graph.Workspaces;
using Dynamo.Logging;
using Dynamo.Models;
using Dynamo.Selection;
Expand Down Expand Up @@ -928,7 +926,7 @@ private void CollapseGroupContents(bool collapseConnectors)

if (!collapseConnectors) return;

CollapseConnectors();
CollapseConnectors();

Analytics.TrackEvent(Actions.Collapsed, Categories.GroupOperations);
}
Expand Down Expand Up @@ -1236,7 +1234,7 @@ private void model_PropertyChanged(object sender, System.ComponentModel.Property

}
}

private void OnModelRemovedFromGroup(object sender, EventArgs e)
{
Analytics.TrackEvent(Actions.RemovedFrom, Categories.GroupOperations, "Node");
Expand Down
2 changes: 0 additions & 2 deletions src/DynamoCoreWpf/Views/Core/AnnotationView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@ private void SetTextMaxWidth()
this.ViewModel.AnnotationModel.TextMaxWidth = formattedText.Width + margin;
}


// ip comment: maybe use this logic for IsExpanded
private void OnNodeColorSelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (e.AddedItems == null || (e.AddedItems.Count <= 0))
Expand Down

0 comments on commit 18b58f1

Please sign in to comment.