mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 17:35:45 +02:00
close tablet before changing domains
This commit is contained in:
parent
281b7a6eca
commit
a28becfb1a
1 changed files with 4 additions and 0 deletions
|
@ -51,6 +51,8 @@ AddressBarDialog::AddressBarDialog(QQuickItem* parent) : OffscreenQmlDialog(pare
|
||||||
void AddressBarDialog::loadAddress(const QString& address, bool fromSuggestions) {
|
void AddressBarDialog::loadAddress(const QString& address, bool fromSuggestions) {
|
||||||
qDebug() << "Called LoadAddress with address " << address;
|
qDebug() << "Called LoadAddress with address " << address;
|
||||||
if (!address.isEmpty()) {
|
if (!address.isEmpty()) {
|
||||||
|
auto HMD = DependencyManager::get<HMDScriptingInterface>();
|
||||||
|
HMD->setShouldShowTablet(false);
|
||||||
DependencyManager::get<AddressManager>()->handleLookupString(address, fromSuggestions);
|
DependencyManager::get<AddressManager>()->handleLookupString(address, fromSuggestions);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -62,6 +64,8 @@ void AddressBarDialog::loadHome() {
|
||||||
if (homeLocation == "") {
|
if (homeLocation == "") {
|
||||||
homeLocation = DEFAULT_HOME_LOCATION;
|
homeLocation = DEFAULT_HOME_LOCATION;
|
||||||
}
|
}
|
||||||
|
auto HMD = DependencyManager::get<HMDScriptingInterface>();
|
||||||
|
HMD->setShouldShowTablet(false);
|
||||||
DependencyManager::get<AddressManager>()->handleLookupString(homeLocation);
|
DependencyManager::get<AddressManager>()->handleLookupString(homeLocation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue