Skip to content

Commit

Permalink
Fixed new Degate release : 2.0.0-alpha.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
DorianBDev committed Nov 8, 2020
1 parent 8f2ceea commit 9a27513
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/GUI/Utils/Updater.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -68,7 +68,7 @@ namespace degate

QByteArray data = process.readAllStandardOutput();

if(exit_code == 1)
if(!data.contains("<updates>"))
{
if (notify_no_update)
{
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 9a27513

Please sign in to comment.