[UI] Enable version update check in pilot client

This commit is contained in:
Klaus Basan
2019-10-31 19:03:15 +01:00
committed by Mat Sutcliffe
parent b1315593f8
commit 5bed714e75
2 changed files with 9 additions and 4 deletions

View File

@@ -1215,7 +1215,7 @@ namespace BlackGui
QTimer::singleShot(delayedMs, this, [ = ]
{
if (!sGui || sGui->isShuttingDown()) { return; }
if (m_updateDialog) { return; }
if (m_updateDialog) { return; } // already checked elsewhere
this->checkNewVersion(true);
});
}

View File

@@ -165,15 +165,20 @@ void SwiftGuiStd::init()
// whether init has been completed
this->setVisible(true);
emit sGui->startUpCompleted(true);
m_init = true;
// more checks
QPointer<SwiftGuiStd> myself(this);
QTimer::singleShot(5000, this, [ = ]
{
if (!myself) { return; }
this->verifyPrerequisites();
});
// trigger version check
sGui->triggerNewVersionCheck(10 * 1000);
// done
emit sGui->startUpCompleted(true);
m_init = true;
}
void SwiftGuiStd::initStyleSheet()