mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
Ref T210, adjusting classes to use new functions
This commit is contained in:
@@ -185,7 +185,7 @@ namespace BlackCore
|
||||
m_network->presetServer(server);
|
||||
|
||||
// Fall back to observer mode, if no simulator is available or not simulating
|
||||
if (CBuildConfig::isStableBranch() && !this->getIContextSimulator()->isSimulatorSimulating())
|
||||
if (!CBuildConfig::isLocalDeveloperDebugBuild() && !this->getIContextSimulator()->isSimulatorSimulating())
|
||||
{
|
||||
CLogMessage(this).info("No simulator connected or connected simulator not simulating. Falling back to observer mode");
|
||||
mode = INetwork::LoginAsObserver;
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace BlackCore
|
||||
{
|
||||
{ "url", "bootstrapurl" },
|
||||
QCoreApplication::translate("application", "Bootstrap URL, e.g. https://datastore.swift-project.org/shared"),
|
||||
"bootstrapurl", (sApp->isUnitTest()) ? unitTestBootstrapUrl() : ""
|
||||
"bootstrapurl", (sApp->getApplicationInfo().isUnitTest()) ? unitTestBootstrapUrl() : ""
|
||||
}, m_cmdBootstrapMode
|
||||
{
|
||||
{ "bmode", "bootstrapmode" },
|
||||
|
||||
@@ -718,7 +718,7 @@ namespace BlackCore
|
||||
};
|
||||
|
||||
// only in not officially shipped versions
|
||||
return (CBuildConfig::isStableBranch() && !CBuildConfig::isDevBranch()) ? e : opts;
|
||||
return (CBuildConfig::isLocalDeveloperDebugBuild()) ? opts : e;
|
||||
}
|
||||
|
||||
bool CNetworkVatlib::getCmdLineClientIdAndKey(int &id, QString &key)
|
||||
|
||||
Reference in New Issue
Block a user