mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
[UI] Enable version update check in pilot client
This commit is contained in:
committed by
Mat Sutcliffe
parent
b1315593f8
commit
5bed714e75
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user