Skip to content

Commit

Permalink
Stable version check on mobile builds
Browse files Browse the repository at this point in the history
  • Loading branch information
DonLakeFlyer committed Nov 21, 2023
1 parent db48478 commit 83d9a3c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/QGCApplication.cc
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,6 @@ bool QGCApplication::isInternetAvailable()

void QGCApplication::_checkForNewVersion()
{
#ifndef __mobile__
if (!_runningUnitTests) {
if (_parseVersionText(applicationVersion(), _majorVersion, _minorVersion, _buildVersion)) {
QString versionCheckFile = toolbox()->corePlugin()->stableVersionCheckFileUrl();
Expand All @@ -836,15 +835,10 @@ void QGCApplication::_checkForNewVersion()
}
}
}
#endif
}

void QGCApplication::_qgcCurrentStableVersionDownloadComplete(QString /*remoteFile*/, QString localFile, QString errorMsg)
{
#ifdef __mobile__
Q_UNUSED(localFile)
Q_UNUSED(errorMsg)
#else
if (errorMsg.isEmpty()) {
QFile versionFile(localFile);
if (versionFile.open(QIODevice::ReadOnly)) {
Expand All @@ -867,7 +861,6 @@ void QGCApplication::_qgcCurrentStableVersionDownloadComplete(QString /*remoteFi
}

sender()->deleteLater();
#endif
}

bool QGCApplication::_parseVersionText(const QString& versionString, int& majorVersion, int& minorVersion, int& buildVersion)
Expand Down

0 comments on commit 83d9a3c

Please sign in to comment.