1
0
mirror of https://github.com/saitohirga/WSJT-X.git synced 2025-03-21 03:28:59 -04:00

RC nag message and expiry

This commit is contained in:
Bill Somerville 2021-02-03 11:38:52 +00:00
parent e5f5435d4d
commit 767f53e79e
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F

View File

@ -1024,7 +1024,7 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
if(QCoreApplication::applicationVersion().contains("-devel") or
QCoreApplication::applicationVersion().contains("-rc")) {
QTimer::singleShot (0, this, SLOT (not_GA_warning_message ()));
QTimer::singleShot (0, this, SLOT (not_GA_warning_message ()));
}
ui->pbBestSP->setVisible(m_mode=="FT4");
@ -1035,14 +1035,14 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
void MainWindow::not_GA_warning_message ()
{
// MessageBox::critical_message (this,
// "This is a pre-release version of WSJT-X 2.3.0 made\n"
// "available for testing purposes. By design it will\n"
// "be nonfunctional after 0000 UTC on Jan 19, 2021.");
// auto now = QDateTime::currentDateTimeUtc ();
// if (now >= QDateTime {{2021, 1, 19}, {0, 0}, Qt::UTC}) {
// Q_EMIT finished ();
// }
MessageBox::critical_message (this,
"This is a pre-release version of WSJT-X 2.4.0 made\n"
"available for testing purposes. By design it will\n"
"be nonfunctional after Apr 27, 2021.");
auto now = QDateTime::currentDateTimeUtc ();
if (now >= QDateTime {{2021, 4, 27}, {23, 59, 59, 999}, Qt::UTC}) {
Q_EMIT finished ();
}
}
void MainWindow::initialize_fonts ()