Auto Update (#1006)

* Updater

* clang

* Adding Updater icon

* Updater

* TR

* settings_dialog.ui

* Changelog for Pre-release only

* Adding Dump and Download icons

* Forgot this...

* fix linux and resize

* powershell_unzip | changelog fix

Does not use zlin-ng to unpack, now uses powershell on windows and on linux/mac uses unzip or 7z, and if it does not find it, it will ask if you want to install it before extracting.

Do not show the changelog button if: The current version is a pre-release and the version to be downloaded is a release.

* Clang

* formatting

* links fixed

---------

Co-authored-by: Xphalnos <164882787+Xphalnos@users.noreply.github.com>
This commit is contained in:
DanielSvoboda 2024-09-24 17:03:15 -03:00 committed by GitHub
parent cec9275c85
commit f79da986e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 5890 additions and 244 deletions

View file

@ -4,6 +4,7 @@
#include <QCompleter>
#include <QDirIterator>
#include "check_update.h"
#include "common/logging/backend.h"
#include "common/logging/filter.h"
#include "main_window.h"
@ -122,6 +123,17 @@ SettingsDialog::SettingsDialog(std::span<const QString> physical_devices, QWidge
connect(ui->logFilterLineEdit, &QLineEdit::textChanged, this,
[](const QString& text) { Config::setLogFilter(text.toStdString()); });
connect(ui->updateCheckBox, &QCheckBox::stateChanged, this,
[](int state) { Config::setAutoUpdate(state == Qt::Checked); });
connect(ui->updateComboBox, &QComboBox::currentTextChanged, this,
[](const QString& channel) { Config::setUpdateChannel(channel.toStdString()); });
connect(ui->checkUpdateButton, &QPushButton::clicked, this, []() {
auto checkUpdate = new CheckUpdate(true);
checkUpdate->exec();
});
}
// GPU TAB
@ -192,6 +204,9 @@ void SettingsDialog::LoadValuesFromConfig() {
ui->vkValidationCheckBox->setChecked(Config::vkValidationEnabled());
ui->vkSyncValidationCheckBox->setChecked(Config::vkValidationSyncEnabled());
ui->rdocCheckBox->setChecked(Config::isRdocEnabled());
ui->updateCheckBox->setChecked(Config::autoUpdate());
ui->updateComboBox->setCurrentText(QString::fromStdString(Config::getUpdateChannel()));
}
void SettingsDialog::InitializeEmulatorLanguages() {