Linux/Mac Auto-Updater (#1145)

This commit is contained in:
qurious-pixel 2024-05-04 16:34:36 -07:00 committed by GitHub
parent a744670486
commit f28043e0e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 82 additions and 28 deletions

View file

@ -146,10 +146,11 @@ wxPanel* GettingStartedDialog::CreatePage2()
m_update = new wxCheckBox(sizer->GetStaticBox(), wxID_ANY, _("Automatically check for updates"));
option_sizer->Add(m_update, 0, wxALL, 5);
#if BOOST_OS_LINUX || BOOST_OS_MACOS
m_update->Disable();
#if BOOST_OS_LINUX
if (!std::getenv("APPIMAGE")) {
m_update->Disable();
}
#endif
sizer->Add(option_sizer, 1, wxEXPAND, 5);
page2_sizer->Add(sizer, 0, wxALL | wxEXPAND, 5);
}