Skip to content

Commit 9a27513

Browse files
committed
Fixed new Degate release : 2.0.0-alpha.4.
1 parent 8f2ceea commit 9a27513

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/GUI/Utils/Updater.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ namespace degate
5757
QString path = QDir(QCoreApplication::applicationDirPath()).absoluteFilePath(tool_name);
5858

5959
QStringList args;
60-
args.append("--checkupdates");
60+
args.append("ch");
6161

6262
process.start(path, args);
6363
}
@@ -68,7 +68,7 @@ namespace degate
6868

6969
QByteArray data = process.readAllStandardOutput();
7070

71-
if(exit_code == 1)
71+
if(!data.contains("<updates>"))
7272
{
7373
if (notify_no_update)
7474
{
@@ -113,7 +113,7 @@ namespace degate
113113

114114
if (reply == QMessageBox::Yes)
115115
{
116-
QStringList args("--updater");
116+
QStringList args("up");
117117
bool success = QProcess::startDetached(tool_name, args);
118118

119119
if (success)

0 commit comments

Comments
 (0)