* @brief Updates the license key stored locally. */
| 356 | * @brief Updates the license key stored locally. |
| 357 | */ |
| 358 | void Licensing::LemonSqueezy::setLicense(const QString& license) |
| 359 | { |
| 360 | const auto simplified = license.simplified(); |
| 361 | if (m_license == simplified) |
| 362 | return; |
| 363 | |
| 364 | m_license = simplified; |
| 365 | Q_EMIT licenseChanged(); |
| 366 | } |
| 367 | |
| 368 | //-------------------------------------------------------------------------------------------------- |
| 369 | // Private slots |