这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions app/src/checkupdatesdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void CheckUpdatesDialog::nightlyBuildCheck()
{
mTitleLabel->setText(tr("<b>You are using a Pencil2D nightly build</b>"));
mDetailLabel->setText(tr("Please go %1 here %2 to check new nightly builds.")
.arg("<a href=\"https://www.pencil2d.org/download/#nightlybuild\">", "</a>"));
.arg("<a href=\"https://www.pencil2d.org/download/nightly/\">", "</a>"));
mDetailLabel->setOpenExternalLinks(true);
mProgressBar->setRange(0, 1);
mProgressBar->setValue(1);
Expand Down Expand Up @@ -212,8 +212,12 @@ QString CheckUpdatesDialog::getVersionNumberFromXml(QString xml)
xmlReader.readNext();
if (xmlReader.name() == QLatin1String("title"))
{
QString titleTag = xmlReader.readElementText();
return titleTag.remove(QRegularExpression("^v")); // remove the leading 'v'
QString title = xmlReader.readElementText();
title = title.remove(QRegularExpression("^v")); // remove the leading 'v'
// Ignore release candidate versions
if (!title.contains("Release Candidate")) {
return title;
}
}
}
}
Expand Down
Loading