Skip to content

Commit

Permalink
Revert "setting exit tour method to internal and calling it when a ne…
Browse files Browse the repository at this point in the history
…w workspace is set (DynamoDS#13180)"

This reverts commit 5d18d76.
  • Loading branch information
reddyashish committed Aug 11, 2022
1 parent 3773923 commit 53452d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion src/DynamoCoreWpf/UI/GuidedTour/GuidesManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ private void TourFinished(GuidedTourStateEventArgs args)
/// <summary>
/// This method exits from tour
/// </summary>
internal void ExitTour()
private void ExitTour()
{

if (currentGuide != null)
Expand Down
7 changes: 0 additions & 7 deletions src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,6 @@ void _model_PropertyChanged(object sender, PropertyChangedEventArgs e)
RaisePropertyChanged("IsPanning");
RaisePropertyChanged("IsOrbiting");
//RaisePropertyChanged("RunEnabled");
ExitGuidedTourIfOpened();
break;

case "EnablePresetOptions":
Expand All @@ -1113,12 +1112,6 @@ void _model_PropertyChanged(object sender, PropertyChangedEventArgs e)
}
}

private void ExitGuidedTourIfOpened()
{
if (GuideFlowEvents.IsAnyGuideActive)
MainGuideManager.ExitTour();
}

// TODO(Sriram): This method is currently not used, but it should really
// be. It watches property change notifications coming from the current
// WorkspaceModel, and then enables/disables 'set timer' button on the UI.
Expand Down

0 comments on commit 53452d8

Please sign in to comment.