This can happen if the model contains NaN, which could be the result of any mesh loading plug-in.
It's likely to fail elsewhere too, but hopefully we can handle that there once we get a Sentry bug about that then.
Fixes Sentry issue CURA-404. Sentry issue not found.
Before this change packages were only being checked if they were bundled after loading the package_id. However only installed packages were being loaded so this would always be false.
The solution here is to check first if a material file is inside "secure_paths" (these are install directory resource paths). If it is, it must be a bundled material.
This provides control over how the header (the header is newly introduced in this commit) and footer components are rendered. The footer is the area where the `leftButtoons` and `rightButtons` are rendered. Having control over how this is rendered introduces for instance the possibility to render the buttons within a warning area (an example of this can bee seen in the WorkspaceDialog).
Add `buttonWarning` and `buttonWarningText` property to `UM.Dialog`
This allows to display a warning surrounding the action buttons when `buttonWarning = true`. Using the `buttonWarningText` field a message can be displayed along side the warning.