Skip to content

Commit

Permalink
🐛 fix version check
Browse files Browse the repository at this point in the history
  • Loading branch information
Reverier-Xu committed May 29, 2024
1 parent 79bb93c commit f44d58f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion desktop/ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Ui::Ui(QObject* parent) : QObject(parent) {
m_window = qobject_cast<QQuickWindow*>(m_uiComponent->create());
m_networkManager = new QNetworkAccessManager(this);
setNewVersion("");
setHasNewVersion(true);
setHasNewVersion(false);
setUpdateUrl("");
// setUpdateUrl("https://github.com//XDSEC/WebSocketReflectorX/releases/latest");
setVersion(VERSION);
Expand Down Expand Up @@ -234,6 +234,10 @@ void Ui::checkUpdates() {
setHasNewVersion(true);
setNewVersion(version);
setUpdateUrl(json["html_url"].toString());
} else {
setHasNewVersion(false);
setNewVersion("");
setUpdateUrl("");
}
});
}
Expand Down

0 comments on commit f44d58f

Please sign in to comment.