mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-07 22:23:12 +08:00
#6407 Hide all auto config elements for enterprise build
This commit is contained in:
@@ -127,7 +127,14 @@ const QString &AppConfig::language() const { return m_Language; }
|
||||
|
||||
bool AppConfig::startedBefore() const { return m_StartedBefore; }
|
||||
|
||||
bool AppConfig::autoConfig() const { return m_AutoConfig; }
|
||||
bool AppConfig::autoConfig() const {
|
||||
#ifndef SYNERGY_ENTERPRISE
|
||||
return m_AutoConfig;
|
||||
#else
|
||||
// always disable auto config for enterprise edition.
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
QString AppConfig::autoConfigServer() const { return m_AutoConfigServer; }
|
||||
|
||||
|
||||
@@ -179,10 +179,11 @@ MainWindow::MainWindow (QSettings& settings, AppConfig& appConfig,
|
||||
|
||||
#ifndef SYNERGY_ENTERPRISE
|
||||
updateZeroconfService();
|
||||
updateAutoConfigWidgets();
|
||||
|
||||
addZeroconfServer(m_AppConfig->autoConfigServer());
|
||||
#endif
|
||||
|
||||
updateAutoConfigWidgets();
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
@@ -1262,7 +1263,11 @@ void MainWindow::updateAutoConfigWidgets()
|
||||
m_pLabelAutoDetected->hide();
|
||||
m_pComboServerList->hide();
|
||||
|
||||
#ifndef SYNERGY_ENTERPRISE
|
||||
m_pWidgetAutoConfig->show();
|
||||
#else
|
||||
m_pWidgetAutoConfig->hide();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user