diff --git a/launchers/qt/src/Launcher.cpp b/launchers/qt/src/Launcher.cpp index cf80604c39..7522529ff9 100644 --- a/launchers/qt/src/Launcher.cpp +++ b/launchers/qt/src/Launcher.cpp @@ -11,7 +11,6 @@ Launcher::Launcher(int& argc, char**argv) : QGuiApplication(argc, argv) { _launcherState = std::make_shared(); - QString platform; #ifdef Q_OS_WIN platform = "Windows"; diff --git a/launchers/qt/src/LauncherState.cpp b/launchers/qt/src/LauncherState.cpp index a9dc47a35d..300bd37ef8 100644 --- a/launchers/qt/src/LauncherState.cpp +++ b/launchers/qt/src/LauncherState.cpp @@ -195,6 +195,8 @@ void LauncherState::requestBuilds() { _latestBuilds = request->getLatestBuilds(); CommandlineOptions* options = CommandlineOptions::getInstance(); + qDebug() << "Latest version: " << _latestBuilds.launcherBuild.latestVersion + << "Curretn version: " << getBuildVersion().toInt(); if (shouldDownloadLauncher() && !options->contains("--noUpdate")) { downloadLauncher(); return; @@ -211,7 +213,6 @@ QString LauncherState::getBuildVersion() { if (processEnvironment.contains("HQ_LAUNCHER_BUILD_VERSION")) { buildVersion = processEnvironment.value("HQ_LAUNCHER_BUILD_VERSION"); } - return buildVersion; } diff --git a/launchers/qt/src/main.cpp b/launchers/qt/src/main.cpp index 3918ec944e..31e879eae1 100644 --- a/launchers/qt/src/main.cpp +++ b/launchers/qt/src/main.cpp @@ -50,9 +50,7 @@ int main(int argc, char *argv[]) { if (hasSuffix(argv[1], "app") && hasSuffix(argv[2], "app")) { bool success = swapLaunchers(argv[1], argv[2]); qDebug() << "Successfully installed Launcher: " << success; - if (!success) { - options->append("--noUpdate"); - } + options->append("--noUpdate"); didUpdate = true; } }