|
|
|
@ -20,12 +20,12 @@
@@ -20,12 +20,12 @@
|
|
|
|
|
#include "aboutform.h" |
|
|
|
|
#include "ui_aboutsettings.h" |
|
|
|
|
|
|
|
|
|
#include "src/widget/tool/recursivesignalblocker.h" |
|
|
|
|
#include "src/net/updatecheck.h" |
|
|
|
|
#include "src/widget/style.h" |
|
|
|
|
#include "src/widget/translator.h" |
|
|
|
|
#include "src/persistence/profile.h" |
|
|
|
|
#include "src/persistence/settings.h" |
|
|
|
|
#include "src/widget/style.h" |
|
|
|
|
#include "src/widget/tool/recursivesignalblocker.h" |
|
|
|
|
#include "src/widget/translator.h" |
|
|
|
|
|
|
|
|
|
#include <tox/tox.h> |
|
|
|
|
|
|
|
|
@ -173,9 +173,8 @@ void AboutForm::replaceVersions()
@@ -173,9 +173,8 @@ void AboutForm::replaceVersions()
|
|
|
|
|
void AboutForm::onUpdateAvailable(QString latestVersion, QUrl link) |
|
|
|
|
{ |
|
|
|
|
QObject::disconnect(linkConnection); |
|
|
|
|
linkConnection = connect(bodyUI->updateAvailableButton, &QPushButton::clicked, [link](){ |
|
|
|
|
QDesktopServices::openUrl(link); |
|
|
|
|
}); |
|
|
|
|
linkConnection = connect(bodyUI->updateAvailableButton, &QPushButton::clicked, |
|
|
|
|
[link]() { QDesktopServices::openUrl(link); }); |
|
|
|
|
bodyUI->updateStack->setCurrentIndex(static_cast<int>(updateIndex::available)); |
|
|
|
|
} |
|
|
|
|
#else |
|
|
|
|