From 270c06696572cc3c9adfbac9701d32cec044eea7 Mon Sep 17 00:00:00 2001 From: LoRd_MuldeR Date: Sun, 24 Dec 2023 20:28:46 +0100 Subject: [PATCH] Small tweak. --- src/Config.h | 2 +- src/Dialog_MainWindow.cpp | 9 ++++++--- src/Thread_Initialization.cpp | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Config.h b/src/Config.h index a4fe7554..d48d062e 100644 --- a/src/Config.h +++ b/src/Config.h @@ -35,7 +35,7 @@ #define VER_LAMEXP_MINOR_LO 1 #define VER_LAMEXP_TYPE RC #define VER_LAMEXP_PATCH 1 -#define VER_LAMEXP_BUILD 2376 +#define VER_LAMEXP_BUILD 2377 #define VER_LAMEXP_CONFG 2188 /////////////////////////////////////////////////////////////////////////////// diff --git a/src/Dialog_MainWindow.cpp b/src/Dialog_MainWindow.cpp index bf0fcb33..bd82d6da 100644 --- a/src/Dialog_MainWindow.cpp +++ b/src/Dialog_MainWindow.cpp @@ -1464,7 +1464,10 @@ void MainWindow::windowShown(void) const bool firstRun = arguments.contains("first-run"); if (firstRun) { - m_settings->licenseAccepted(0); + if (m_settings->licenseAccepted() <= 0) + { + m_settings->licenseAccepted(0); + } m_settings->autoUpdateCheckBeta(false); m_settings->syncNow(); } @@ -1518,7 +1521,7 @@ void MainWindow::windowShown(void) return; } - //Check for expiration + //Check for expiration of "pre-release" version if(lamexp_version_test()) { if(MUtils::OS::current_date() >= lamexp_version_expires()) @@ -1543,7 +1546,7 @@ void MainWindow::windowShown(void) } //Slow startup indicator - if(m_settings->slowStartup() && m_settings->antivirNotificationsEnabled()) + if((!firstRun) && m_settings->slowStartup() && m_settings->antivirNotificationsEnabled()) { QString message; message += tr("It seems that a bogus anti-virus software is slowing down the startup of LameXP.").append("
"); diff --git a/src/Thread_Initialization.cpp b/src/Thread_Initialization.cpp index 1dd0e7d0..0bfc226d 100644 --- a/src/Thread_Initialization.cpp +++ b/src/Thread_Initialization.cpp @@ -58,7 +58,7 @@ static const bool ENABLE_CUSTOM_TOOLS = true; #define MAKE_REGEXP(STR) (((STR) && ((STR)[0])) ? QRegExp((STR)) : QRegExp()) /* constants */ -static const double g_allowedExtractDelay = 12.0; +static const double g_allowedExtractDelay = 24.0; static const size_t BUFF_SIZE = 512; /* number of CPU cores -> number of threads */