Changelog for Pre-release only

This commit is contained in:
DanielSvoboda 2024-09-18 14:56:01 -03:00
parent 02f3679df5
commit 9e6b6ba4d9

View File

@ -189,8 +189,13 @@ void CheckUpdate::setupUI_UpdateAvailable(const QString& downloadUrl, const QStr
bottomLayout->addWidget(noButton);
layout->addLayout(bottomLayout);
QString updateChannel = QString::fromStdString(Config::getUpdateChannel());
// Create text field for changelog
if (updateChannel == "unstable") {
QTextEdit* textField = new QTextEdit(this);
textField->setReadOnly(true);
textField->setFixedWidth(400);
textField->setFixedHeight(200);
@ -224,6 +229,9 @@ void CheckUpdate::setupUI_UpdateAvailable(const QString& downloadUrl, const QStr
tr("Viewing changelog is only available for the 'unstable' channel."));
}
});
} else {
setFixedSize(420, 175);
}
connect(yesButton, &QPushButton::clicked, this,
[this, downloadUrl]() { DownloadAndInstallUpdate(downloadUrl); });