}
QString id = channelId;
-
- // Fix old settings
- const QLatin1String uc("UC");
- if (!id.startsWith(uc)) id = uc + id;
-
+ qDebug() << "Channel" << id;
SearchParams *searchParams = new SearchParams();
searchParams->setChannelId(id);
searchParams->setSortBy(SearchParams::SortByNewest);
if (showMessages && !settings.contains(key = "sofa")) {
QString msg = tr("Need a remote control for %1? Try %2!").arg(Constants::NAME).arg("Sofa");
msg = "<a href='https://" + QLatin1String(Constants::ORG_DOMAIN) + '/' + key +
- "' style = 'text-decoration:none;color:palette(windowText)'>" + msg + "</a>";
+ "' style='text-decoration:none;color:palette(windowText)'>" + msg + "</a>";
messageBar->setMessage(msg);
messageBar->setOpenExternalLinks(true);
disconnect(messageBar);
#ifdef APP_ACTIVATION
oneYearUsage = (QDateTime::currentSecsSinceEpoch() -
Activation::instance().getLicenseTimestamp()) > 86400 * 365;
+#elif defined APP_MAC_STORE
+ oneYearUsage = false;
#endif
if (oneYearUsage) {
QString msg =
tr("I keep improving %1 to make it the best I can. Support this work!")
.arg(Constants::NAME);
msg = "<a href='https://" + QLatin1String(Constants::ORG_DOMAIN) + "/donate" +
- "' style = 'text-decoration:none;color:palette(windowText)'>" + msg + "</a>";
+ "' style='text-decoration:none;color:palette(windowText)'>" + msg + "</a>";
messageBar->setMessage(msg);
messageBar->setOpenExternalLinks(true);
disconnect(messageBar);
connect(&Updater::instance(), &Updater::statusChanged, this, [this](auto status) {
if (status == Updater::Status::UpdateDownloaded) {
QString msg = tr("An update is ready to be installed. Quit and install update.");
- msg = "<a href='http://quit' style = "
- "'text-decoration:none;color:palette(windowText)'>" +
+ msg = "<a href='http://quit' style='text-decoration:none;color:palette(windowText)'>" +
msg + "</a>";
messageBar->setMessage(msg);
messageBar->setOpenExternalLinks(false);
disconnect(messageBar);
- connect(messageBar, &MessageBar::linkActivated, this, [] { qApp->quit(); });
+ connect(messageBar, &MessageBar::linkActivated, this, [] {
+ Updater::instance().setRelaunchAfterInstall(true);
+ qApp->quit();
+ });
messageBar->show();
}
});