Ref T41, download auto info triggered in mapping tool

This commit is contained in:
Klaus Basan
2017-04-25 14:39:54 +02:00
committed by Mathew Sutcliffe
parent b2d95f471e
commit 83adc66ec7
2 changed files with 3 additions and 23 deletions

View File

@@ -113,7 +113,7 @@ void CSwiftData::init()
this->setWindowTitle(t);
}
QTimer::singleShot(10 * 1000, this, &CSwiftData::checkNewVersion);
sGui->triggerNewVersionCheck(10 * 1000);
emit sGui->startUpCompleted(true);
}
@@ -151,21 +151,6 @@ void CSwiftData::performGracefulShutdown()
// void
}
void CSwiftData::checkNewVersion()
{
const QStringList channelPlatform = m_distributionSettings.get();
Q_ASSERT_X(channelPlatform.size() == 2, Q_FUNC_INFO, "wrong setting");
const QVersionNumber v = m_distributionInfo.get().getQVersionForChannelAndPlatform(channelPlatform);
if (v.isNull() || v.segmentCount() < 4) return;
const QVersionNumber vCurrent = CBuildConfig::getVersion();
if (v <= vCurrent) return;
// new version
const CStatusMessage m = CStatusMessage(this).info("New version '%1' from %2 for %3. Current version is '%4'") << v.toString() << channelPlatform.first() << channelPlatform.last() << vCurrent.toString();
this->displayInOverlayWindow(m, 5000);
CLogMessage::preformatted(m);
}
void CSwiftData::displayConsole()
{
ui->comp_MainInfoArea->displayConsole();