update Channel is already called once, it doesn't need to be called again
This commit is contained in:
DanielSvoboda 2025-02-12 00:36:22 -03:00
parent e48b72704a
commit 6d57eb58e9

View File

@ -257,7 +257,6 @@ void CheckUpdate::setupUI(const QString& downloadUrl, const QString& latestDate,
connect(toggleButton, &QPushButton::clicked, connect(toggleButton, &QPushButton::clicked,
[this, textField, toggleButton, currentRev, latestRev, downloadUrl, latestDate, [this, textField, toggleButton, currentRev, latestRev, downloadUrl, latestDate,
currentDate]() { currentDate]() {
QString updateChannel = QString::fromStdString(Config::getUpdateChannel());
if (!textField->isVisible()) { if (!textField->isVisible()) {
requestChangelog(currentRev, latestRev, downloadUrl, latestDate, requestChangelog(currentRev, latestRev, downloadUrl, latestDate,
currentDate); currentDate);
@ -273,7 +272,6 @@ void CheckUpdate::setupUI(const QString& downloadUrl, const QString& latestDate,
}); });
if (Config::alwaysShowChangelog()) { if (Config::alwaysShowChangelog()) {
QString updateChannel = QString::fromStdString(Config::getUpdateChannel());
requestChangelog(currentRev, latestRev, downloadUrl, latestDate, currentDate); requestChangelog(currentRev, latestRev, downloadUrl, latestDate, currentDate);
textField->setVisible(true); textField->setVisible(true);
toggleButton->setText(tr("Hide Changelog")); toggleButton->setText(tr("Hide Changelog"));