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

@ -2292,9 +2292,11 @@ void MainWindow::RecreateMenu()
// help menu
wxMenu* helpMenu = new wxMenu();
m_check_update_menu = helpMenu->Append(MAINFRAME_MENU_ID_HELP_UPDATE, _("&Check for updates"));
#if BOOST_OS_LINUX || BOOST_OS_MACOS
m_check_update_menu->Enable(false);
#endif
#if BOOST_OS_LINUX
if (!std::getenv("APPIMAGE")) {
m_check_update_menu->Enable(false);
}
#endif
helpMenu->Append(MAINFRAME_MENU_ID_HELP_GETTING_STARTED, _("&Getting started"));
helpMenu->AppendSeparator();
helpMenu->Append(MAINFRAME_MENU_ID_HELP_ABOUT, _("&About Cemu"));