mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-16 11:55:16 +00:00
Fix button changelog (#1882)
This commit is contained in:
parent
8d262ce40c
commit
932032928c
|
@ -213,9 +213,9 @@ void CheckUpdate::setupUI(const QString& downloadUrl, const QString& latestDate,
|
||||||
|
|
||||||
// Don't show changelog button if:
|
// Don't show changelog button if:
|
||||||
// The current version is a pre-release and the version to be downloaded is a release.
|
// The current version is a pre-release and the version to be downloaded is a release.
|
||||||
bool current_isRelease = currentRev.startsWith('v', Qt::CaseInsensitive);
|
bool current_isWIP = currentRev.endsWith("WIP", Qt::CaseInsensitive);
|
||||||
bool latest_isRelease = latestRev.startsWith('v', Qt::CaseInsensitive);
|
bool latest_isWIP = latestRev.endsWith("WIP", Qt::CaseInsensitive);
|
||||||
if (!current_isRelease && latest_isRelease) {
|
if (current_isWIP && !latest_isWIP) {
|
||||||
} else {
|
} else {
|
||||||
QTextEdit* textField = new QTextEdit(this);
|
QTextEdit* textField = new QTextEdit(this);
|
||||||
textField->setReadOnly(true);
|
textField->setReadOnly(true);
|
||||||
|
|
Loading…
Reference in a new issue