forked from qt-creator/qt-creator
UpdateInfo: Fix unnecessary initialization delay
No need to start a one minute timer in delayedInitialize and then even delay the next one by returning true from there. Just start the timer in extensionsInitialized directly. Change-Id: Ie36c8cef588603b1e9cb27a3a14db5d1dec1dae9 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -179,16 +179,10 @@ bool UpdateInfoPlugin::isCheckForUpdatesRunning() const
|
||||
return d->m_checkUpdatesCommand;
|
||||
}
|
||||
|
||||
bool UpdateInfoPlugin::delayedInitialize()
|
||||
void UpdateInfoPlugin::extensionsInitialized()
|
||||
{
|
||||
if (isAutomaticCheck())
|
||||
QTimer::singleShot(OneMinute, this, &UpdateInfoPlugin::startAutoCheckForUpdates);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void UpdateInfoPlugin::extensionsInitialized()
|
||||
{
|
||||
}
|
||||
|
||||
bool UpdateInfoPlugin::initialize(const QStringList & /* arguments */, QString *errorMessage)
|
||||
|
||||
Reference in New Issue
Block a user