mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-19 19:15:26 +00:00
Qt: enable updater for linux arm
This commit is contained in:
parent
800c0f7a56
commit
cefcaaf287
1 changed files with 9 additions and 5 deletions
|
@ -95,6 +95,10 @@
|
|||
#include "raw_mouse_settings_dialog.h"
|
||||
#endif
|
||||
|
||||
#if defined(__linux__) || defined(__APPLE__) || (defined(_WIN32) && defined(ARCH_X64))
|
||||
#define RPCS3_UPDATE_SUPPORTED
|
||||
#endif
|
||||
|
||||
LOG_CHANNEL(gui_log, "GUI");
|
||||
|
||||
extern atomic_t<bool> g_user_asked_for_frame_capture;
|
||||
|
@ -335,7 +339,7 @@ bool main_window::Init([[maybe_unused]] bool with_cli_boot)
|
|||
}
|
||||
});
|
||||
|
||||
#if (!defined(ARCH_ARM64) || defined(__APPLE__)) && (defined(_WIN32) || defined(__linux__) || defined(__APPLE__))
|
||||
#ifdef RPCS3_UPDATE_SUPPORTED
|
||||
if (const auto update_value = m_gui_settings->GetValue(gui::m_check_upd_start).toString(); update_value != gui::update_off)
|
||||
{
|
||||
const bool in_background = with_cli_boot || update_value == gui::update_bkg;
|
||||
|
@ -3359,11 +3363,11 @@ void main_window::CreateConnects()
|
|||
|
||||
connect(ui->updateAct, &QAction::triggered, this, [this]()
|
||||
{
|
||||
#if (!defined(_WIN32) && !defined(__linux__) && !defined(__APPLE__)) || (defined(ARCH_ARM64) && !defined(__APPLE__))
|
||||
QMessageBox::warning(this, tr("Auto-updater"), tr("The auto-updater isn't available for your OS currently."));
|
||||
return;
|
||||
#endif
|
||||
#ifdef RPCS3_UPDATE_SUPPORTED
|
||||
m_updater.check_for_updates(false, false, false, this);
|
||||
#else
|
||||
QMessageBox::warning(this, tr("Auto-updater"), tr("The auto-updater isn't available for your OS currently."));
|
||||
#endif
|
||||
});
|
||||
|
||||
connect(ui->welcomeAct, &QAction::triggered, this, [this]()
|
||||
|
|
Loading…
Add table
Reference in a new issue