Skip to content

Commit

Permalink
[bugfix] link to choose from dynamic (#61)
Browse files Browse the repository at this point in the history
If there is a link on a channel choose the link fails.
Now there is the type of the parent of both coose types.
  • Loading branch information
olterion authored Oct 10, 2024
1 parent 50c09f4 commit a45df39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Kaenx.Creator/Controls/DynamicView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ private void ClickEditButtonFunction(object sender, RoutedEventArgs e)

private void DynChooseParaRefLink(object sender, RoutedEventArgs e)
{
Models.ParameterRef paraRef = ((sender as System.Windows.Documents.Hyperlink).DataContext as Models.Dynamic.DynChooseBlock).ParameterRefObject;
Models.ParameterRef paraRef = ((sender as System.Windows.Documents.Hyperlink).DataContext as Models.Dynamic.IDynChoose).ParameterRefObject;
MainWindow.Instance.GoToItem(paraRef, Module);
}

Expand Down

0 comments on commit a45df39

Please sign in to comment.