mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-12 03:16:07 +08:00
#5657 Remind users to activate all devices if they might be using SSL
This commit is contained in:
@@ -85,11 +85,20 @@ void ActivationDialog::accept()
|
|||||||
|
|
||||||
Edition edition = m_LicenseManager->activeEdition();
|
Edition edition = m_LicenseManager->activeEdition();
|
||||||
if (edition != kUnregistered) {
|
if (edition != kUnregistered) {
|
||||||
|
QString thanksMessage = tr("Thanks for trying %1! %3\n\n%2 days of "
|
||||||
|
"your trial remain").
|
||||||
|
arg (m_LicenseManager->getEditionName(edition)).
|
||||||
|
arg (m_LicenseManager->serialKey().daysLeft(::time(0)));
|
||||||
|
|
||||||
|
if (edition == kPro) {
|
||||||
|
thanksMessage = thanksMessage.arg("If you're using SSL, "
|
||||||
|
"remember to activate all of your devices.");
|
||||||
|
} else {
|
||||||
|
thanksMessage = thanksMessage.arg("");
|
||||||
|
}
|
||||||
|
|
||||||
if (m_LicenseManager->serialKey().isTrial()) {
|
if (m_LicenseManager->serialKey().isTrial()) {
|
||||||
message.information(this, "Thanks!",
|
message.information(this, "Thanks!", thanksMessage);
|
||||||
tr("Thanks for trying %1!\n\n%2 days of your trial remain").arg
|
|
||||||
(m_LicenseManager->getEditionName(edition)).arg
|
|
||||||
(m_LicenseManager->serialKey().daysLeft(::time(0))));
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
message.information(this, "Activated!",
|
message.information(this, "Activated!",
|
||||||
|
|||||||
Reference in New Issue
Block a user