mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 04:07:11 +02:00
Adding potential fix
This commit is contained in:
parent
5cf6cc0270
commit
089831b6ee
3 changed files with 9 additions and 2 deletions
|
@ -26,6 +26,7 @@ ScrollingWindow {
|
|||
y: 100
|
||||
|
||||
Component.onCompleted: {
|
||||
focus = true
|
||||
shown = true
|
||||
addressBar.text = webview.url
|
||||
}
|
||||
|
|
|
@ -140,7 +140,9 @@ Item {
|
|||
horizontalAlignment: Text.AlignHCenter
|
||||
linkColor: hifi.colors.blueAccent
|
||||
|
||||
onLinkActivated: loginDialog.openUrl(link)
|
||||
onLinkActivated: {
|
||||
loginDialog.openUrl(link);
|
||||
}
|
||||
}
|
||||
onFocusChanged: {
|
||||
root.text = "";
|
||||
|
@ -170,7 +172,9 @@ Item {
|
|||
horizontalAlignment: Text.AlignHCenter
|
||||
linkColor: hifi.colors.blueAccent
|
||||
|
||||
onLinkActivated: loginDialog.openUrl(link)
|
||||
onLinkActivated: {
|
||||
loginDialog.openUrl(link);
|
||||
}
|
||||
}
|
||||
|
||||
onFocusChanged: {
|
||||
|
|
|
@ -172,11 +172,13 @@ void LoginDialog::openUrl(const QString& url) const {
|
|||
offscreenUi->load("Browser.qml", [=](QQmlContext* context, QObject* newObject) {
|
||||
newObject->setProperty("url", url);
|
||||
});
|
||||
LoginDialog::hide();
|
||||
} else {
|
||||
if (!hmd->getShouldShowTablet() && !qApp->isHMDMode()) {
|
||||
offscreenUi->load("Browser.qml", [=](QQmlContext* context, QObject* newObject) {
|
||||
newObject->setProperty("url", url);
|
||||
});
|
||||
LoginDialog::hide();
|
||||
} else {
|
||||
tablet->gotoWebScreen(url);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue