Disable updates for local build

This commit is contained in:
RipleyTom 2024-02-12 17:30:40 +01:00 committed by Megamouse
parent df74d49f72
commit 569f72c360
2 changed files with 10 additions and 6 deletions

View file

@ -241,7 +241,7 @@ bool main_window::Init([[maybe_unused]] bool with_cli_boot)
}
});
#if defined(_WIN32) || defined(__linux__) || defined(__APPLE__)
#if !defined(ARCH_ARM64) && (defined(_WIN32) || defined(__linux__) || defined(__APPLE__))
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;
@ -3033,7 +3033,7 @@ void main_window::CreateConnects()
connect(ui->updateAct, &QAction::triggered, this, [this]()
{
#if !defined(_WIN32) && !defined(__linux__) && !defined(__APPLE__)
#if (!defined(_WIN32) && !defined(__linux__) && !defined(__APPLE__)) || defined(ARCH_ARM64)
QMessageBox::warning(this, tr("Auto-updater"), tr("The auto-updater isn't available for your OS currently."));
return;
#endif