mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +02:00
Merge pull request #3822 from birarda/master
restore default domain for clean app launch
This commit is contained in:
commit
02b8ef2a05
3 changed files with 7 additions and 5 deletions
|
@ -1926,11 +1926,14 @@ void Application::init() {
|
|||
// check if we have a URL in settings to load to jump back to
|
||||
// we load this separate from the other settings so we don't double lookup a URL
|
||||
QSettings* interfaceSettings = lockSettings();
|
||||
QUrl addressURL = interfaceSettings->value(SETTINGS_ADDRESS_KEY).toUrl();
|
||||
QVariant addressVariant = interfaceSettings->value(SETTINGS_ADDRESS_KEY);
|
||||
|
||||
AddressManager::getInstance().handleLookupString(addressURL.toString());
|
||||
QString addressString = addressVariant.isNull()
|
||||
? DEFAULT_HIFI_ADDRESS : addressVariant.toUrl().toString();
|
||||
|
||||
unlockSettings();
|
||||
|
||||
AddressManager::getInstance().handleLookupString(addressString);
|
||||
}
|
||||
|
||||
qDebug() << "Loaded settings";
|
||||
|
|
|
@ -19,7 +19,8 @@
|
|||
|
||||
#include "AccountManager.h"
|
||||
|
||||
static const QString HIFI_URL_SCHEME = "hifi";
|
||||
const QString HIFI_URL_SCHEME = "hifi";
|
||||
const QString DEFAULT_HIFI_ADDRESS = "hifi://sandbox";
|
||||
|
||||
typedef const glm::vec3& (*PositionGetter)();
|
||||
typedef glm::quat (*OrientationGetter)();
|
||||
|
|
|
@ -22,8 +22,6 @@
|
|||
#include "HifiSockAddr.h"
|
||||
#include "NetworkPeer.h"
|
||||
|
||||
const QString DEFAULT_DOMAIN_HOSTNAME = "sandbox.highfidelity.io";
|
||||
|
||||
const unsigned short DEFAULT_DOMAIN_SERVER_PORT = 40102;
|
||||
const unsigned short DEFAULT_DOMAIN_SERVER_DTLS_PORT = 40103;
|
||||
const quint16 DOMAIN_SERVER_HTTP_PORT = 40100;
|
||||
|
|
Loading…
Reference in a new issue