MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / proWidgetsEnabled

Method proWidgetsEnabled

app/src/SerialStudio.cpp:59–68  ·  view source on GitHub ↗

* @brief Checks whether Pro-only dashboard widgets (Plot3D, ImageView, OutputPanel) should be * materialised for this build. */

Source from the content-addressed store, hash-verified

57 * materialised for this build.
58 */
59bool 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.

Callers

nothing calls this directly

Calls 3

featureTierMethod · 0.80
isEmptyMethod · 0.80
isValidMethod · 0.45

Tested by

no test coverage detected