mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
Renamings and adjustments of developer flag
This commit is contained in:
@@ -35,7 +35,7 @@ namespace BlackGui
|
||||
ui(new Ui::CAircraftPartsHistory)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
ui->cb_PartsHistoryEnabled->setChecked(sApp && sApp->isRunningInDeveloperEnvironment()); // default
|
||||
ui->cb_PartsHistoryEnabled->setChecked(sApp && sApp->isDeveloperFlagSet()); // default
|
||||
|
||||
m_timerUpdateHistory.setInterval(2 * 1000);
|
||||
this->initGui();
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace BlackGui
|
||||
ui(new Ui::CDbDebugDatabaseSetup)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
const bool enabled = sGui->isRunningInDeveloperEnvironment();
|
||||
const bool enabled = sGui->isDeveloperFlagSet();
|
||||
this->setEnabled(enabled);
|
||||
if (!enabled)
|
||||
{
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace BlackGui
|
||||
ui->tbr_InfoAndHints->setHtml(html);
|
||||
ui->tbr_InfoAndHints->setOpenExternalLinks(true);
|
||||
|
||||
const bool devEnv = sGui->isRunningInDeveloperEnvironment();
|
||||
const bool devEnv = sGui->isDeveloperFlagSet();
|
||||
ui->comp_DebugSetup->setVisible(devEnv);
|
||||
|
||||
const QString dbUrl = sGui->getGlobalSetup().getDbHomePageUrl().toQString();
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace BlackGui
|
||||
ui->setupUi(this);
|
||||
|
||||
// normally no system Bus on Windows
|
||||
if (CBuildConfig::isRunningOnWindowsNtPlatform() || !sGui->isRunningInDeveloperEnvironment())
|
||||
if (CBuildConfig::isRunningOnWindowsNtPlatform() || !sGui->isDeveloperFlagSet())
|
||||
{
|
||||
this->setSystemDBusVisible(false);
|
||||
}
|
||||
|
||||
@@ -147,7 +147,7 @@ namespace BlackGui
|
||||
CServerList otherServers(m_otherTrafficNetworkServers.getThreadLocal());
|
||||
|
||||
// add a testserver when no servers can be loaded
|
||||
if (otherServers.isEmpty() && (sGui->isRunningInDeveloperEnvironment() || CBuildConfig::isLocalDeveloperDebugBuild()))
|
||||
if (otherServers.isEmpty() && (sGui->isDeveloperFlagSet() || CBuildConfig::isLocalDeveloperDebugBuild()))
|
||||
{
|
||||
otherServers.push_back(sGui->getGlobalSetup().getFsdTestServersPlusHardcodedServers());
|
||||
CLogMessage(this).info("Added servers for testing");
|
||||
|
||||
@@ -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() || sGui->isRunningInDeveloperEnvironment());
|
||||
ui->comp_DataLoadOverview->showVisibleDbRefreshButtons(CBuildConfig::isDebugBuild() || sGui->isDeveloperFlagSet());
|
||||
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() && (sGui->isRunningInDeveloperEnvironment()))
|
||||
if (serverList.isEmpty() && (sGui->isDeveloperFlagSet()))
|
||||
{
|
||||
serverList.push_back(sGui->getGlobalSetup().getFsdTestServersPlusHardcodedServers());
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace BlackGui
|
||||
|
||||
void CLoginModeButtons::configureLoginModes()
|
||||
{
|
||||
if (!sGui->isRunningInDeveloperEnvironment() && !sGui->getIContextSimulator()->isSimulatorSimulating())
|
||||
if (!sGui->isDeveloperFlagSet() && !sGui->getIContextSimulator()->isSimulatorSimulating())
|
||||
{
|
||||
// Disable pilot login modes
|
||||
ui->rb_LoginNormal->setEnabled(false);
|
||||
|
||||
Reference in New Issue
Block a user