mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 16:32:39 +00:00
+
update Channel is already called once, it doesn't need to be called again
This commit is contained in:
parent
e48b72704a
commit
6d57eb58e9
@ -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"));
|
||||||
|
Loading…
Reference in New Issue
Block a user