From 9a27513b48fb0a785e63abfc2ded3cb875979e12 Mon Sep 17 00:00:00 2001 From: DorianBDev Date: Sun, 8 Nov 2020 18:02:06 +0100 Subject: [PATCH] Fixed new Degate release : 2.0.0-alpha.4. --- src/GUI/Utils/Updater.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GUI/Utils/Updater.cc b/src/GUI/Utils/Updater.cc index 69c25d8f..74293912 100644 --- a/src/GUI/Utils/Updater.cc +++ b/src/GUI/Utils/Updater.cc @@ -57,7 +57,7 @@ namespace degate QString path = QDir(QCoreApplication::applicationDirPath()).absoluteFilePath(tool_name); QStringList args; - args.append("--checkupdates"); + args.append("ch"); process.start(path, args); } @@ -68,7 +68,7 @@ namespace degate QByteArray data = process.readAllStandardOutput(); - if(exit_code == 1) + if(!data.contains("")) { if (notify_no_update) { @@ -113,7 +113,7 @@ namespace degate if (reply == QMessageBox::Yes) { - QStringList args("--updater"); + QStringList args("up"); bool success = QProcess::startDetached(tool_name, args); if (success)