-
Notifications
You must be signed in to change notification settings - Fork 668
Crash Fix. Add visibility trigger to empty tooltip strings. #12069
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| var portValue = model.Start.Owner.GetValue(model.Start.Index, workspaceViewModel.DynamoViewModel.EngineController); | ||
| if (portValue is null) | ||
| { | ||
| ConnectorDataTooltip = "N/A"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can also go back to "N/A" but seems like we should just not show a tooltip if there is nothing to show
src/DynamoCoreWpf/UI/Converters.cs
Outdated
| { | ||
| public object Convert(object value, Type targetType, object parameter, CultureInfo culture) | ||
| { | ||
| if (value == null) return ""; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sense, would you update to use String.Empty where applies, thanks!
QilongTang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment, then LGTM
…#12069) * Add visiblity trigger to empty tooltip strings * PR comment * Pr comments Co-authored-by: Craig Long <craig.long@autodesk.com>
* Polyline + thick outline removed. * Removed 'ConnectorType` menu from view->connectors. * Updated connector styles. * New resources added/old ones removed. Minor UI updates to reflect mockups. * First commit. * Cleanup. On-the-fly ContextMenu working. * Applying ContextMenu styling. * Added (stole) ContextMenu styling. * Added resource strings to ContextMenu control. * Update AssemblySharedInfo.cs * Unused ref removal. * Cleanup. * Fixes. * First commit. * Cleanup. On-the-fly ContextMenu working. * Applying ContextMenu styling. * Added (stole) ContextMenu styling. * Added resource strings to ContextMenu control. * Update AssemblySharedInfo.cs * Cleanup. * Adding 10 to margin (#12076) * Update AnnotationModel.cs (#12086) * Crash Fix. Add visibility trigger to empty tooltip strings. (#12069) * Add visiblity trigger to empty tooltip strings * PR comment * Pr comments Co-authored-by: Craig Long <craig.long@autodesk.com> * DYN-3992: Upgrade LibG (#12060) * mark test as failure temporarily to fix build issues (#12090) * add pins to groups (#12070) * add pins to groups * Update ConnectorPinView.xaml.cs * Remove outdated logic (#12081) * Wire connector UI modifications (#12072) * Polyline + thick outline removed. * Removed 'ConnectorType` menu from view->connectors. * Updated connector styles. * New resources added/old ones removed. Minor UI updates to reflect mockups. * [DYN-4105] Make sure nodes gets added to parent group (#12084) * make sure nodes gets added to parent group * remove commented code Co-authored-by: Aaron (Qilong) <173288704@qq.com> * Updates resource strings from Remove to Delete (#12088) * Improved ContextMenu behaviour. * PR fix. * Removed unnecessary refs. * Added unit tests for ConnectorContextMenu construction/disposal/commands. Co-authored-by: filipeotero <89042471+filipeotero@users.noreply.github.com> Co-authored-by: Sylvester Knudsen <sylvesterknudsen@gmail.com> Co-authored-by: Craig Long <craig.alan.long@gmail.com> Co-authored-by: Craig Long <craig.long@autodesk.com> Co-authored-by: Jorgen Dahl <sm6srw@users.noreply.github.com> Co-authored-by: aparajit-pratap <aparajit.pratap@autodesk.com> Co-authored-by: Aaron (Qilong) <173288704@qq.com> Co-authored-by: Ollie Green <oliveredwardgreen@gmail.com>
Purpose
This PR fixes a crash bug when hovering wires after opening the graph in
Manualmode. Specifically it hides the tooltips for the hover menu.Declarations
Check these if you believe they are true
*.resxfilesReviewers
@marimano @QilongTang