Merge pull request #6490 from symless/v1-issue-6407-enterprise-autoconfig5
Fixes auto config UI elements in enterprise versions
This commit is contained in:
commit
fe6cc4b849
|
@ -127,7 +127,14 @@ const QString &AppConfig::language() const { return m_Language; }
|
||||||
|
|
||||||
bool AppConfig::startedBefore() const { return m_StartedBefore; }
|
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; }
|
QString AppConfig::autoConfigServer() const { return m_AutoConfigServer; }
|
||||||
|
|
||||||
|
|
|
@ -179,10 +179,11 @@ MainWindow::MainWindow (QSettings& settings, AppConfig& appConfig,
|
||||||
|
|
||||||
#ifndef SYNERGY_ENTERPRISE
|
#ifndef SYNERGY_ENTERPRISE
|
||||||
updateZeroconfService();
|
updateZeroconfService();
|
||||||
updateAutoConfigWidgets();
|
|
||||||
|
|
||||||
addZeroconfServer(m_AppConfig->autoConfigServer());
|
addZeroconfServer(m_AppConfig->autoConfigServer());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
updateAutoConfigWidgets();
|
||||||
}
|
}
|
||||||
|
|
||||||
MainWindow::~MainWindow()
|
MainWindow::~MainWindow()
|
||||||
|
@ -1275,7 +1276,11 @@ void MainWindow::updateAutoConfigWidgets()
|
||||||
m_pLabelAutoDetected->hide();
|
m_pLabelAutoDetected->hide();
|
||||||
m_pComboServerList->hide();
|
m_pComboServerList->hide();
|
||||||
|
|
||||||
|
#ifndef SYNERGY_ENTERPRISE
|
||||||
m_pWidgetAutoConfig->show();
|
m_pWidgetAutoConfig->show();
|
||||||
|
#else
|
||||||
|
m_pWidgetAutoConfig->hide();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue