mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
as discussed in slack: added default swift testserver (FSD servers) if no settings can be loaded
This commit is contained in:
committed by
Mathew Sutcliffe
parent
d8e0ff83e6
commit
6a1f5e8347
@@ -16,6 +16,7 @@
|
||||
#include "blackcore/context_simulator.h"
|
||||
#include "blackcore/network.h"
|
||||
#include "blackcore/simulator.h"
|
||||
#include "blackcore/global_network_settings.h"
|
||||
#include "blackmisc/logmessage.h"
|
||||
#include "blackmisc/aviation/aircrafticaodata.h"
|
||||
#include "../uppercasevalidator.h"
|
||||
@@ -142,6 +143,12 @@ namespace BlackGui
|
||||
ps_validateVatsimValues();
|
||||
ps_onVatsimDataFileLoaded();
|
||||
CServerList otherServers = this->m_trafficNetworkServers.get();
|
||||
|
||||
// add a testserver when no servers can be loaded
|
||||
if (otherServers.isEmpty() && CProject::isDebugBuild())
|
||||
{
|
||||
otherServers.push_back(CGlobalNetworkSettings::instance().swiftFSDTestServer());
|
||||
}
|
||||
this->ui->cbp_OtherServers->setServers(otherServers);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user