Small tweak.

This commit is contained in:
LoRd_MuldeR 2023-12-24 20:28:46 +01:00
parent 704db332ea
commit 270c066965
3 changed files with 8 additions and 5 deletions

View File

@ -35,7 +35,7 @@
#define VER_LAMEXP_MINOR_LO 1 #define VER_LAMEXP_MINOR_LO 1
#define VER_LAMEXP_TYPE RC #define VER_LAMEXP_TYPE RC
#define VER_LAMEXP_PATCH 1 #define VER_LAMEXP_PATCH 1
#define VER_LAMEXP_BUILD 2376 #define VER_LAMEXP_BUILD 2377
#define VER_LAMEXP_CONFG 2188 #define VER_LAMEXP_CONFG 2188
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -1464,7 +1464,10 @@ void MainWindow::windowShown(void)
const bool firstRun = arguments.contains("first-run"); const bool firstRun = arguments.contains("first-run");
if (firstRun) if (firstRun)
{ {
m_settings->licenseAccepted(0); if (m_settings->licenseAccepted() <= 0)
{
m_settings->licenseAccepted(0);
}
m_settings->autoUpdateCheckBeta(false); m_settings->autoUpdateCheckBeta(false);
m_settings->syncNow(); m_settings->syncNow();
} }
@ -1518,7 +1521,7 @@ void MainWindow::windowShown(void)
return; return;
} }
//Check for expiration //Check for expiration of "pre-release" version
if(lamexp_version_test()) if(lamexp_version_test())
{ {
if(MUtils::OS::current_date() >= lamexp_version_expires()) if(MUtils::OS::current_date() >= lamexp_version_expires())
@ -1543,7 +1546,7 @@ void MainWindow::windowShown(void)
} }
//Slow startup indicator //Slow startup indicator
if(m_settings->slowStartup() && m_settings->antivirNotificationsEnabled()) if((!firstRun) && m_settings->slowStartup() && m_settings->antivirNotificationsEnabled())
{ {
QString message; QString message;
message += tr("It seems that a bogus anti-virus software is slowing down the startup of LameXP.").append("<br>"); message += tr("It seems that a bogus anti-virus software is slowing down the startup of LameXP.").append("<br>");

View File

@ -58,7 +58,7 @@ static const bool ENABLE_CUSTOM_TOOLS = true;
#define MAKE_REGEXP(STR) (((STR) && ((STR)[0])) ? QRegExp((STR)) : QRegExp()) #define MAKE_REGEXP(STR) (((STR) && ((STR)[0])) ? QRegExp((STR)) : QRegExp())
/* constants */ /* constants */
static const double g_allowedExtractDelay = 12.0; static const double g_allowedExtractDelay = 24.0;
static const size_t BUFF_SIZE = 512; static const size_t BUFF_SIZE = 512;
/* number of CPU cores -> number of threads */ /* number of CPU cores -> number of threads */