mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
Ref T85, minor improvements on server type
* UI: generic generation of combobox * UI: Read only for combobox * CServer utility functions
This commit is contained in:
@@ -181,7 +181,7 @@ namespace BlackCore
|
||||
|
||||
CServerList CGlobalSetup::getFsdTestServersPlusHardcodedServers() const
|
||||
{
|
||||
static const CServerList hardcoded({ CServer("swift", "swift Testserver", "vatsim-germany.org", 6809, CUser("1234567", "swift Test User", "", "123456"), true) });
|
||||
static const CServerList hardcoded({ CServer("swift", "swift Testserver", "vatsim-germany.org", 6809, CUser("1234567", "swift Test User", "", "123456"), CServer::FSDServerVatsim, true) });
|
||||
CServerList testServers(m_fsdTestServers);
|
||||
testServers.addIfAddressNotExists(hardcoded);
|
||||
return testServers;
|
||||
|
||||
@@ -127,7 +127,7 @@ namespace BlackCore
|
||||
VatServerType serverType;
|
||||
switch (m_server.getServerType())
|
||||
{
|
||||
case CServer::ServerVatsim: serverType = vatServerVatsim; break;
|
||||
case CServer::FSDServerVatsim: serverType = vatServerVatsim; break;
|
||||
default: serverType = vatServerLegacyFsd; break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user