Skip to content

Commit 6612687

Browse files
committed
Update RunSettingsViewModel.cs
1 parent b54e0d3 commit 6612687

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/DynamoCoreWpf/ViewModels/RunSettingsViewModel.cs

+5-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class RunTypeItem : NotificationObject
2424
private bool isSelected;
2525

2626
/// <summary>
27-
/// The enabled flag sets whether the RunType is selectablable
27+
/// The enabled flag sets whether the RunType is selectable
2828
/// in the view.
2929
/// </summary>
3030
public bool Enabled
@@ -307,10 +307,13 @@ public override void Dispose()
307307
#region private and internal methods
308308

309309
/// <summary>
310-
/// Notifies all relevant Dynamo features (UI elements, commands) that the Graph exection has been enabled/disabled.
310+
/// Notifies all relevant Dynamo features (UI elements, commands) that the Graph execution has been enabled/disabled.
311311
/// </summary>
312312
void NotifyOfGraphRunChanged()
313313
{
314+
// Skip UI updates during periodic mode to prevent unnecessary toggling of UI elements
315+
if (Model.RunType == RunType.Periodic) return;
316+
314317
RaisePropertyChanged(nameof(RunButtonEnabled));
315318
RaisePropertyChanged(nameof(RunButtonToolTip));
316319

0 commit comments

Comments
 (0)