Trully reports new versions.
This commit is contained in:
parent
825cb542b8
commit
f4f278119a
2 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ void FormUpdate::checkForUpdates() {
|
||||||
|
|
||||||
bool is_self_update_for_this_system = isUpdateForThisSystem() && isSelfUpdateSupported();
|
bool is_self_update_for_this_system = isUpdateForThisSystem() && isSelfUpdateSupported();
|
||||||
|
|
||||||
if (update.first.m_availableVersion != APP_VERSION) {
|
if (update.first.m_availableVersion > APP_VERSION) {
|
||||||
m_ui->m_lblStatus->setStatus(WidgetWithStatus::Ok,
|
m_ui->m_lblStatus->setStatus(WidgetWithStatus::Ok,
|
||||||
tr("New release available."),
|
tr("New release available."),
|
||||||
tr("This is new version which can be\ndownloaded and installed."));
|
tr("This is new version which can be\ndownloaded and installed."));
|
||||||
|
|
|
@ -235,7 +235,7 @@ void SystemFactory::handleBackgroundUpdatesCheck() {
|
||||||
QFutureWatcher<UpdateCheck> *future_watcher = static_cast<QFutureWatcher<UpdateCheck>*>(sender());
|
QFutureWatcher<UpdateCheck> *future_watcher = static_cast<QFutureWatcher<UpdateCheck>*>(sender());
|
||||||
UpdateCheck updates = future_watcher->result();
|
UpdateCheck updates = future_watcher->result();
|
||||||
|
|
||||||
if (updates.second == QNetworkReply::NoError && updates.first.m_availableVersion != APP_VERSION) {
|
if (updates.second == QNetworkReply::NoError && updates.first.m_availableVersion > APP_VERSION) {
|
||||||
if (SystemTrayIcon::isSystemTrayActivated()) {
|
if (SystemTrayIcon::isSystemTrayActivated()) {
|
||||||
qApp->trayIcon()->showMessage(tr("New version available"),
|
qApp->trayIcon()->showMessage(tr("New version available"),
|
||||||
tr("Click the bubble for more information."),
|
tr("Click the bubble for more information."),
|
||||||
|
|
Loading…
Add table
Reference in a new issue