mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-30 14:15:35 +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, [ = ]
|
QTimer::singleShot(delayedMs, this, [ = ]
|
||||||
{
|
{
|
||||||
if (!sGui || sGui->isShuttingDown()) { return; }
|
if (!sGui || sGui->isShuttingDown()) { return; }
|
||||||
if (m_updateDialog) { return; }
|
if (m_updateDialog) { return; } // already checked elsewhere
|
||||||
this->checkNewVersion(true);
|
this->checkNewVersion(true);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -165,15 +165,20 @@ void SwiftGuiStd::init()
|
|||||||
// whether init has been completed
|
// whether init has been completed
|
||||||
this->setVisible(true);
|
this->setVisible(true);
|
||||||
|
|
||||||
emit sGui->startUpCompleted(true);
|
// more checks
|
||||||
m_init = true;
|
|
||||||
|
|
||||||
QPointer<SwiftGuiStd> myself(this);
|
QPointer<SwiftGuiStd> myself(this);
|
||||||
QTimer::singleShot(5000, this, [ = ]
|
QTimer::singleShot(5000, this, [ = ]
|
||||||
{
|
{
|
||||||
if (!myself) { return; }
|
if (!myself) { return; }
|
||||||
this->verifyPrerequisites();
|
this->verifyPrerequisites();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// trigger version check
|
||||||
|
sGui->triggerNewVersionCheck(10 * 1000);
|
||||||
|
|
||||||
|
// done
|
||||||
|
emit sGui->startUpCompleted(true);
|
||||||
|
m_init = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SwiftGuiStd::initStyleSheet()
|
void SwiftGuiStd::initStyleSheet()
|
||||||
|
|||||||
Reference in New Issue
Block a user