#6338 Hide auto config setting for Enterprise build

This commit is contained in:
Nick Bolton 2018-08-06 06:05:34 +01:00
parent c0452f0e61
commit 53d5c89851
1 changed files with 8 additions and 0 deletions

View File

@ -78,13 +78,21 @@ SettingsDialog::SettingsDialog(QWidget* parent, AppConfig& config) :
#endif
m_pCheckBoxEnableCrypto->setChecked(m_appConfig.getCryptoEnabled());
#ifdef SYNERGY_ENTERPRISE
m_pCheckBoxEnableCrypto->setEnabled(true);
m_pLabelProUpgrade->hide();
m_pCheckBoxAutoConfig->hide();
m_pLabelInstallBonjour->hide();
#else
bool isPro = m_appConfig.edition() == kPro;
m_pCheckBoxEnableCrypto->setEnabled(isPro);
m_pLabelProUpgrade->setVisible(!isPro);
#endif
}