mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Ref T210, adjusting classes to use new functions
This commit is contained in:
@@ -157,7 +157,7 @@ namespace BlackGui
|
||||
CServerList otherServers(m_otherTrafficNetworkServers.getThreadLocal());
|
||||
|
||||
// add a testserver when no servers can be loaded
|
||||
if (otherServers.isEmpty() && (sGui->isRunningInDeveloperEnvironment() || CBuildConfig::isDevBranch()))
|
||||
if (otherServers.isEmpty() && sGui->isRunningInDeveloperEnvironment())
|
||||
{
|
||||
otherServers.push_back(sGui->getGlobalSetup().getFsdTestServersPlusHardcodedServers());
|
||||
CLogMessage(this).info("Added servers for testing");
|
||||
|
||||
@@ -265,7 +265,7 @@ namespace BlackGui
|
||||
bool changed = false;
|
||||
if (aircraftFromBackend.getModelString() != modelString)
|
||||
{
|
||||
CAircraftModelList models = sGui->getIContextSimulator()->getModelSetModelsStartingWith(modelString);
|
||||
const CAircraftModelList models = sGui->getIContextSimulator()->getModelSetModelsStartingWith(modelString);
|
||||
if (models.isEmpty())
|
||||
{
|
||||
CLogMessage(this).validationError("No model for title: %1") << modelString;
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace BlackGui
|
||||
this->tabBar()->setExpanding(false);
|
||||
this->tabBar()->setUsesScrollButtons(true);
|
||||
this->setCurrentIndex(0); // 1st tab
|
||||
ui->comp_DataLoadOverview->showVisibleDbRefreshButtons(CBuildConfig::isDebugBuild() || CBuildConfig::isDevBranch());
|
||||
ui->comp_DataLoadOverview->showVisibleDbRefreshButtons(CBuildConfig::isDebugBuild() || sGui->isRunningInDeveloperEnvironment());
|
||||
ui->comp_DataLoadOverview->showVisibleLoadAllButtons(false, false);
|
||||
|
||||
connect(ui->comp_SettingsGuiGeneral, &CSettingsGuiComponent::changedWindowsOpacity, this, &CSettingsComponent::changedWindowsOpacity);
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace BlackGui
|
||||
|
||||
// add swift test servers in case we have no servers:
|
||||
// this is debug/bootstrap feature we can continue to test when something goes wrong
|
||||
if (serverList.isEmpty() && (CBuildConfig::isDevBranch() || sGui->isRunningInDeveloperEnvironment()))
|
||||
if (serverList.isEmpty() && (sGui->isRunningInDeveloperEnvironment()))
|
||||
{
|
||||
serverList.push_back(sGui->getGlobalSetup().getFsdTestServersPlusHardcodedServers());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user