Skip to content

Commit

Permalink
RMG: hide netplay tab in settings dialog when built with netplay disa…
Browse files Browse the repository at this point in the history
…bled
  • Loading branch information
Rosalie241 committed Dec 29, 2024
1 parent 4e8ab79 commit 0f28fb6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/RMG/UserInterface/Dialog/SettingsDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ SettingsDialog::SettingsDialog(QWidget *parent) : QDialog(parent)
// connect hotkey settings to slot
this->commonHotkeySettings(SettingsDialogAction::ConnectSignals);

#ifndef NETPLAY
this->innerInterfaceTabWidget->setTabVisible((int)SettingsDialogTab::InterfaceNetplay, false);
#endif // !NETPLAY

#ifndef UPDATER
this->checkForUpdatesCheckBox->setHidden(true);
#endif // !UPDATER
Expand Down

0 comments on commit 0f28fb6

Please sign in to comment.