From b5fb9e2a9e2d414048e56488c431556f3f937b02 Mon Sep 17 00:00:00 2001 From: MuldeR Date: Fri, 13 Apr 2018 21:45:17 +0200 Subject: [PATCH] Slightly increased update notification timeout. --- src/MainWindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 01baea7..414dc80 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -90,6 +90,7 @@ MEDIAINFO_BIN[] = }; //Const +static const int UPDATE_TIMEOUT = 9; static const int FILE_RECEIVE_DELAY = 1750; //////////////////////////////////////////////////////////// @@ -194,10 +195,10 @@ void CMainWindow::showEvent(QShowEvent *event) //Init test ui->versionLabel->setText(QString("v%1 / v%2 (%3)").arg(MIXP_VERSION_STR, MI_VERSION_STR, MUtils::Version::app_build_date().toString(Qt::ISODate))); - ui->updateLabel->setText(tr("This version is more than six month old and probably outdated. Please check %1 for updates!").arg(LINK_MULDER)); + ui->updateLabel->setText(tr("This version is more than %1 month old and probably outdated. Please check %2 for updates!").arg(QString::number(UPDATE_TIMEOUT), LINK_MULDER)); //Show update hint? - ui->updateLabel->setVisible(MUtils::Version::app_build_date().addMonths(6) < MUtils::OS::current_date()); + ui->updateLabel->setVisible(MUtils::Version::app_build_date().addMonths(UPDATE_TIMEOUT) < MUtils::OS::current_date()); //Force resize event resizeEvent(NULL);