mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-04 00:45:46 +08:00
refs #921, renaming follow ups
This commit is contained in:
committed by
Mathew Sutcliffe
parent
0b29ef3f78
commit
929e2883d0
@@ -182,7 +182,7 @@ namespace BlackCore
|
|||||||
{
|
{
|
||||||
CApplicationInfo::ApplicationMode mode;
|
CApplicationInfo::ApplicationMode mode;
|
||||||
if (isRunningInDeveloperEnvironment()) { mode |= CApplicationInfo::Developer; }
|
if (isRunningInDeveloperEnvironment()) { mode |= CApplicationInfo::Developer; }
|
||||||
if (CBuildConfig::isBetaTest()) { mode |= CApplicationInfo::BetaTest; }
|
if (CBuildConfig::isDevBranch()) { mode |= CApplicationInfo::BetaTest; }
|
||||||
return { CApplication::getSwiftApplication(), mode, QCoreApplication::applicationFilePath(), CVersion::version(), CProcessInfo::currentProcess() };
|
return { CApplication::getSwiftApplication(), mode, QCoreApplication::applicationFilePath(), CVersion::version(), CProcessInfo::currentProcess() };
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -218,7 +218,7 @@ namespace BlackCore
|
|||||||
|
|
||||||
const QString &CApplication::getApplicationNameVersionBetaDev() const
|
const QString &CApplication::getApplicationNameVersionBetaDev() const
|
||||||
{
|
{
|
||||||
static const QString s(QCoreApplication::instance()->applicationName() + " " + this->versionStringDevBetaInfo());
|
static const QString s(QCoreApplication::instance()->applicationName() + " " + this->versionStringDetailed());
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -476,7 +476,7 @@ namespace BlackCore
|
|||||||
{
|
{
|
||||||
const QString env =
|
const QString env =
|
||||||
QLatin1String("Beta: ") %
|
QLatin1String("Beta: ") %
|
||||||
boolToYesNo(CBuildConfig::isBetaTest()) %
|
boolToYesNo(CBuildConfig::isDevBranch()) %
|
||||||
QLatin1String(" dev.env,: ") %
|
QLatin1String(" dev.env,: ") %
|
||||||
boolToYesNo(isRunningInDeveloperEnvironment()) %
|
boolToYesNo(isRunningInDeveloperEnvironment()) %
|
||||||
separator %
|
separator %
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ namespace BlackCore
|
|||||||
this->m_network->presetServer(server);
|
this->m_network->presetServer(server);
|
||||||
|
|
||||||
// Fall back to observer mode, if no simulator is available or not simulating
|
// Fall back to observer mode, if no simulator is available or not simulating
|
||||||
if (CBuildConfig::isShippedVersion() && !this->getIContextSimulator()->isSimulatorSimulating())
|
if (CBuildConfig::isStableBranch() && !this->getIContextSimulator()->isSimulatorSimulating())
|
||||||
{
|
{
|
||||||
CLogMessage(this).info("No simulator connected or connected simulator not simulating. Falling back to observer mode");
|
CLogMessage(this).info("No simulator connected or connected simulator not simulating. Falling back to observer mode");
|
||||||
mode = INetwork::LoginAsObserver;
|
mode = INetwork::LoginAsObserver;
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ namespace BlackGui
|
|||||||
CServerList otherServers(this->m_otherTrafficNetworkServers.getThreadLocal());
|
CServerList otherServers(this->m_otherTrafficNetworkServers.getThreadLocal());
|
||||||
|
|
||||||
// add a testserver when no servers can be loaded
|
// add a testserver when no servers can be loaded
|
||||||
if (otherServers.isEmpty() && (sGui->isRunningInDeveloperEnvironment() || CBuildConfig::isBetaTest()))
|
if (otherServers.isEmpty() && (sGui->isRunningInDeveloperEnvironment() || CBuildConfig::isDevBranch()))
|
||||||
{
|
{
|
||||||
otherServers.push_back(sGui->getGlobalSetup().getFsdTestServersPlusHardcodedServers());
|
otherServers.push_back(sGui->getGlobalSetup().getFsdTestServersPlusHardcodedServers());
|
||||||
CLogMessage(this).info("Added servers for testing");
|
CLogMessage(this).info("Added servers for testing");
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ namespace BlackGui
|
|||||||
this->tabBar()->setExpanding(false);
|
this->tabBar()->setExpanding(false);
|
||||||
this->tabBar()->setUsesScrollButtons(true);
|
this->tabBar()->setUsesScrollButtons(true);
|
||||||
this->setCurrentIndex(0); // 1st tab
|
this->setCurrentIndex(0); // 1st tab
|
||||||
ui->comp_DataLoadOverview->showVisibleDbRefreshButtons(CBuildConfig::isDebugBuild() || CBuildConfig::isBetaTest());
|
ui->comp_DataLoadOverview->showVisibleDbRefreshButtons(CBuildConfig::isDebugBuild() || CBuildConfig::isDevBranch());
|
||||||
ui->comp_DataLoadOverview->showVisibleLoadAllButtons(false, false);
|
ui->comp_DataLoadOverview->showVisibleLoadAllButtons(false, false);
|
||||||
|
|
||||||
connect(ui->comp_SettingsGuiGeneral, &CSettingsGuiComponent::changedWindowsOpacity, this, &CSettingsComponent::changedWindowsOpacity);
|
connect(ui->comp_SettingsGuiGeneral, &CSettingsGuiComponent::changedWindowsOpacity, this, &CSettingsComponent::changedWindowsOpacity);
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ namespace BlackGui
|
|||||||
|
|
||||||
// add swift test servers in case we have no servers:
|
// add swift test servers in case we have no servers:
|
||||||
// this is debug/bootstrap feature we can continue to test when something goes wrong
|
// this is debug/bootstrap feature we can continue to test when something goes wrong
|
||||||
if (serverList.isEmpty() && (CBuildConfig::isBetaTest() || sGui->isRunningInDeveloperEnvironment()))
|
if (serverList.isEmpty() && (CBuildConfig::isDevBranch() || sGui->isRunningInDeveloperEnvironment()))
|
||||||
{
|
{
|
||||||
serverList.push_back(sGui->getGlobalSetup().getFsdTestServersPlusHardcodedServers());
|
serverList.push_back(sGui->getGlobalSetup().getFsdTestServersPlusHardcodedServers());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ namespace BlackGui
|
|||||||
|
|
||||||
void CLoginModeButtons::configureLoginModes()
|
void CLoginModeButtons::configureLoginModes()
|
||||||
{
|
{
|
||||||
if(CBuildConfig::isShippedVersion() && !sGui->getIContextSimulator()->isSimulatorSimulating())
|
if(CBuildConfig::isStableBranch() && !sGui->getIContextSimulator()->isSimulatorSimulating())
|
||||||
{
|
{
|
||||||
// Disable pilot login modes
|
// Disable pilot login modes
|
||||||
ui->rb_LoginNormal->setEnabled(false);
|
ui->rb_LoginNormal->setEnabled(false);
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ namespace BlackMisc
|
|||||||
"C:/Program Files (x86)/Microsoft Games/Microsoft Flight Simulator X",
|
"C:/Program Files (x86)/Microsoft Games/Microsoft Flight Simulator X",
|
||||||
"C:/FSX"
|
"C:/FSX"
|
||||||
});
|
});
|
||||||
if (!CBuildConfig::isShippedVersion())
|
if (!CBuildConfig::isStableBranch())
|
||||||
{
|
{
|
||||||
// developer directories
|
// developer directories
|
||||||
someDefaultDirs.push_back("P:/FSX (MSI)");
|
someDefaultDirs.push_back("P:/FSX (MSI)");
|
||||||
|
|||||||
Reference in New Issue
Block a user