* @brief Checks whether Pro-only dashboard widgets (Plot3D, ImageView, OutputPanel) should be * materialised for this build. */
| 57 | * materialised for this build. |
| 58 | */ |
| 59 | bool SerialStudio::proWidgetsEnabled() |
| 60 | { |
| 61 | #ifdef BUILD_COMMERCIAL |
| 62 | const auto& token = Licensing::CommercialToken::current(); |
| 63 | return token.isValid() && SS_LICENSE_GUARD() |
| 64 | && token.featureTier() >= Licensing::FeatureTier::Trial && !token.variantName().isEmpty(); |
| 65 | #else |
| 66 | return false; |
| 67 | #endif |
| 68 | } |
| 69 | |
| 70 | /** |
| 71 | * @brief Returns true if a transform script references the notify() API family. |
nothing calls this directly
no test coverage detected