Skip to content

Commit

Permalink
Disable auto-update on Linux/macOS (#955)
Browse files Browse the repository at this point in the history
It's not implemented yet
  • Loading branch information
jn64 authored Sep 2, 2023
1 parent 5e84862 commit 2abf1c2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/GeneralSettings2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ wxPanel* GeneralSettings2::AddGeneralPage(wxNotebook* notebook)
m_auto_update = new wxCheckBox(box, wxID_ANY, _("Automatically check for updates"));
m_auto_update->SetToolTip(_("Automatically checks for new cemu versions on startup"));
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);
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"));
Expand Down
3 changes: 3 additions & 0 deletions src/gui/GettingStartedDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ 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();
#endif

sizer->Add(option_sizer, 1, wxEXPAND, 5);
page2_sizer->Add(sizer, 0, wxALL | wxEXPAND, 5);
Expand Down
3 changes: 3 additions & 0 deletions src/gui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2254,6 +2254,9 @@ void MainWindow::RecreateMenu()
//helpMenu->Append(MAINFRAME_MENU_ID_HELP_WEB, wxT("&Visit website"));
//helpMenu->AppendSeparator();
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->AppendSeparator();
helpMenu->Append(MAINFRAME_MENU_ID_HELP_ABOUT, _("&About Cemu"));
Expand Down

0 comments on commit 2abf1c2

Please sign in to comment.