Remove pumpkin mode.
This commit is contained in:
parent
cf1752cbb3
commit
eaf87cc4a1
|
@ -71,17 +71,6 @@ int main(int argc, char *argv[])
|
||||||
MApplication app(argc, argv);
|
MApplication app(argc, argv);
|
||||||
app.InitOptions();
|
app.InitOptions();
|
||||||
|
|
||||||
if (FvUpdater::IsStaledTestBuild())
|
|
||||||
{
|
|
||||||
qWarning() << QApplication::translate("Tape",
|
|
||||||
"This test build is older than %1 days. To provide you with better "
|
|
||||||
"quality service we restrict the lifetime you can use a test build. "
|
|
||||||
"To continue using Tape please update to newer test build. The "
|
|
||||||
"application will be shut down.")
|
|
||||||
.arg(FvUpdater::testBuildLifetime);
|
|
||||||
return V_EX_UNAVAILABLE;
|
|
||||||
}
|
|
||||||
|
|
||||||
QTimer::singleShot(0, &app, &MApplication::ProcessCMD);
|
QTimer::singleShot(0, &app, &MApplication::ProcessCMD);
|
||||||
|
|
||||||
#if defined(APPIMAGE) && defined(Q_OS_LINUX)
|
#if defined(APPIMAGE) && defined(Q_OS_LINUX)
|
||||||
|
|
|
@ -80,17 +80,6 @@ int main(int argc, char *argv[])
|
||||||
VApplication app(argc, argv);
|
VApplication app(argc, argv);
|
||||||
app.InitOptions();
|
app.InitOptions();
|
||||||
|
|
||||||
if (FvUpdater::IsStaledTestBuild())
|
|
||||||
{
|
|
||||||
qWarning() << QApplication::translate("Valentina",
|
|
||||||
"This test build is older than %1 days. To provide you with better "
|
|
||||||
"quality service we restrict the lifetime you can use a test build. "
|
|
||||||
"To continue using Valentina please update to newer test build. The "
|
|
||||||
"application will be shut down.")
|
|
||||||
.arg(FvUpdater::testBuildLifetime);
|
|
||||||
return V_EX_UNAVAILABLE;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (VApplication::IsGUIMode())
|
if (VApplication::IsGUIMode())
|
||||||
{
|
{
|
||||||
// Set feed URL before doing anything else
|
// Set feed URL before doing anything else
|
||||||
|
|
|
@ -53,8 +53,6 @@
|
||||||
#include "fvavailableupdate.h"
|
#include "fvavailableupdate.h"
|
||||||
#include "fvupdatewindow.h"
|
#include "fvupdatewindow.h"
|
||||||
|
|
||||||
const int FvUpdater::testBuildLifetime = 90;
|
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
Q_GLOBAL_STATIC_WITH_ARGS(const QString, defaultFeedURL,
|
Q_GLOBAL_STATIC_WITH_ARGS(const QString, defaultFeedURL,
|
||||||
|
@ -134,20 +132,6 @@ bool FvUpdater::IsTestBuild()
|
||||||
return (version != 0x0 && version != APP_VERSION);
|
return (version != 0x0 && version != APP_VERSION);
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
|
||||||
bool FvUpdater::IsStaledTestBuild()
|
|
||||||
{
|
|
||||||
if (IsTestBuild())
|
|
||||||
{
|
|
||||||
QDate builtDate = QLocale::c().toDate(QStringLiteral(__DATE__).simplified(), QStringLiteral("MMM d yyyy"));
|
|
||||||
return builtDate.daysTo(QDate::currentDate()) > testBuildLifetime;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
FvUpdater::FvUpdater()
|
FvUpdater::FvUpdater()
|
||||||
: QObject(nullptr),
|
: QObject(nullptr),
|
||||||
|
|
|
@ -46,7 +46,6 @@ public:
|
||||||
static QString CurrentFeedURL();
|
static QString CurrentFeedURL();
|
||||||
static int CurrentVersion();
|
static int CurrentVersion();
|
||||||
static bool IsTestBuild();
|
static bool IsTestBuild();
|
||||||
static bool IsStaledTestBuild();
|
|
||||||
|
|
||||||
// Set / get feed URL
|
// Set / get feed URL
|
||||||
void SetFeedURL(const QUrl &feedURL);
|
void SetFeedURL(const QUrl &feedURL);
|
||||||
|
@ -56,8 +55,6 @@ public:
|
||||||
bool IsDropOnFinnish() const;
|
bool IsDropOnFinnish() const;
|
||||||
void SetDropOnFinnish(bool value);
|
void SetDropOnFinnish(bool value);
|
||||||
|
|
||||||
static const int testBuildLifetime;
|
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
// Check for updates
|
// Check for updates
|
||||||
bool CheckForUpdates(bool silentAsMuchAsItCouldGet = true);
|
bool CheckForUpdates(bool silentAsMuchAsItCouldGet = true);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user