mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
@@ -16,6 +16,7 @@
|
||||
#include "blackmisc/icons.h"
|
||||
#include "blackmisc/logmessage.h"
|
||||
#include "blackmisc/verify.h"
|
||||
#include "blackmisc/buildconfig.h"
|
||||
|
||||
using namespace BlackMisc;
|
||||
using namespace BlackMisc::Network;
|
||||
@@ -78,7 +79,7 @@ namespace BlackGui
|
||||
}
|
||||
|
||||
// write to disk
|
||||
bool s = sGui->getWebDataServices()->writeDbDataToDisk(CProject::getSwiftStaticDbFilesDir());
|
||||
bool s = sGui->getWebDataServices()->writeDbDataToDisk(CBuildConfig::getSwiftStaticDbFilesDir());
|
||||
if (s)
|
||||
{
|
||||
CLogMessage(this).info("Written DB data");
|
||||
@@ -93,12 +94,12 @@ namespace BlackGui
|
||||
bool CDataInfoAreaComponent::readDbDataFromResourceDir()
|
||||
{
|
||||
bool s = sGui &&
|
||||
sGui->getWebDataServices()->readDbDataFromDisk(CProject::getSwiftStaticDbFilesDir(), true);
|
||||
sGui->getWebDataServices()->readDbDataFromDisk(CBuildConfig::getSwiftStaticDbFilesDir(), true);
|
||||
|
||||
// info
|
||||
if (s)
|
||||
{
|
||||
CLogMessage(this).info("Read DB data from directory: %1") << CProject::getSwiftStaticDbFilesDir();
|
||||
CLogMessage(this).info("Read DB data from directory: %1") << CBuildConfig::getSwiftStaticDbFilesDir();
|
||||
this->ui->comp_DbAircraftIcao->showLoadIndicator();
|
||||
this->ui->comp_DbAirlineIcao->showLoadIndicator();
|
||||
this->ui->comp_DbCountries->showLoadIndicator();
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
*/
|
||||
|
||||
#include "blackgui/guiapplication.h"
|
||||
#include "blackmisc/project.h"
|
||||
#include "dbdebugdatabasesetup.h"
|
||||
#include "ui_dbdebugdatabasesetup.h"
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "blackcore/contextaudio.h"
|
||||
#include "blackcore/simulator.h"
|
||||
#include "blackmisc/audio/audioutils.h"
|
||||
#include "blackmisc/project.h"
|
||||
#include "blackmisc/buildconfig.h"
|
||||
#include "blackmisc/icons.h"
|
||||
|
||||
#include <QPoint>
|
||||
@@ -159,7 +159,7 @@ namespace BlackGui
|
||||
QMenu menuAudio(this);
|
||||
menuAudio.addAction("Toogle mute");
|
||||
|
||||
if (CProject::isRunningOnWindowsNtPlatform())
|
||||
if (CBuildConfig::isRunningOnWindowsNtPlatform())
|
||||
{
|
||||
menuAudio.addAction("Mixer");
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "blackcore/network.h"
|
||||
#include "blackcore/simulator.h"
|
||||
#include "blackmisc/logmessage.h"
|
||||
#include "blackmisc/buildconfig.h"
|
||||
#include <QIntValidator>
|
||||
|
||||
using namespace BlackMisc;
|
||||
@@ -106,7 +107,7 @@ namespace BlackGui
|
||||
CServerList otherServers(this->m_otherTrafficNetworkServers.get());
|
||||
|
||||
// add a testserver when no servers can be loaded
|
||||
if (otherServers.isEmpty() && (sGui->isRunningInDeveloperEnvironment() || CProject::isBetaTest()))
|
||||
if (otherServers.isEmpty() && (sGui->isRunningInDeveloperEnvironment() || CBuildConfig::isBetaTest()))
|
||||
{
|
||||
otherServers.push_back(sGui->getGlobalSetup().getFsdTestServersPlusHardcodedServers());
|
||||
CLogMessage(this).info("Added servers for testing");
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include "blackcore/setupreader.h"
|
||||
#include "blackcore/contextapplication.h"
|
||||
#include "blackmisc/logmessage.h"
|
||||
#include "blackmisc/project.h"
|
||||
#include "blackmisc/buildconfig.h"
|
||||
#include <QModelIndex>
|
||||
|
||||
using namespace BlackCore;
|
||||
@@ -53,7 +53,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() && (CProject::isBetaTest() || sGui->isRunningInDeveloperEnvironment()))
|
||||
if (serverList.isEmpty() && (CBuildConfig::isBetaTest() || sGui->isRunningInDeveloperEnvironment()))
|
||||
{
|
||||
serverList.push_back(sGui->getGlobalSetup().getFsdTestServersPlusHardcodedServers());
|
||||
this->ui->tvp_Servers->updateContainer(serverList);
|
||||
|
||||
Reference in New Issue
Block a user