Disable auto-update on Linux/macOS (#955)

It's not implemented yet
This commit is contained in:
jn64 2023-09-02 11:57:21 +08:00 committed by GitHub
parent 5e84862e28
commit 2abf1c2059
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View File

@ -166,6 +166,9 @@ wxPanel* GeneralSettings2::AddGeneralPage(wxNotebook* notebook)
m_auto_update = new wxCheckBox(box, wxID_ANY, _("Automatically check for updates")); m_auto_update = new wxCheckBox(box, wxID_ANY, _("Automatically check for updates"));
m_auto_update->SetToolTip(_("Automatically checks for new cemu versions on startup")); m_auto_update->SetToolTip(_("Automatically checks for new cemu versions on startup"));
second_row->Add(m_auto_update, 0, botflag, 5); second_row->Add(m_auto_update, 0, botflag, 5);
#if BOOST_OS_LINUX || BOOST_OS_MACOS
m_auto_update->Disable();
#endif
second_row->AddSpacer(10); second_row->AddSpacer(10);
m_save_screenshot = new wxCheckBox(box, wxID_ANY, _("Save screenshot")); m_save_screenshot = new wxCheckBox(box, wxID_ANY, _("Save screenshot"));
m_save_screenshot->SetToolTip(_("Pressing the screenshot key (F12) will save a screenshot directly to the screenshots folder")); m_save_screenshot->SetToolTip(_("Pressing the screenshot key (F12) will save a screenshot directly to the screenshots folder"));

View File

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

View File

@ -2254,6 +2254,9 @@ void MainWindow::RecreateMenu()
//helpMenu->Append(MAINFRAME_MENU_ID_HELP_WEB, wxT("&Visit website")); //helpMenu->Append(MAINFRAME_MENU_ID_HELP_WEB, wxT("&Visit website"));
//helpMenu->AppendSeparator(); //helpMenu->AppendSeparator();
m_check_update_menu = helpMenu->Append(MAINFRAME_MENU_ID_HELP_UPDATE, _("&Check for updates")); 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
helpMenu->Append(MAINFRAME_MENU_ID_HELP_GETTING_STARTED, _("&Getting started")); helpMenu->Append(MAINFRAME_MENU_ID_HELP_GETTING_STARTED, _("&Getting started"));
helpMenu->AppendSeparator(); helpMenu->AppendSeparator();
helpMenu->Append(MAINFRAME_MENU_ID_HELP_ABOUT, _("&About Cemu")); helpMenu->Append(MAINFRAME_MENU_ID_HELP_ABOUT, _("&About Cemu"));