mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-08 20:07:47 +02:00
Fixed browser.qml 'onNewViewRequested'
This commit is contained in:
parent
4aab389305
commit
8bf87128d9
2 changed files with 7 additions and 1 deletions
|
@ -217,6 +217,11 @@ ScrollingWindow {
|
||||||
}
|
}
|
||||||
onIconChanged: {
|
onIconChanged: {
|
||||||
console.log("New icon: " + icon)
|
console.log("New icon: " + icon)
|
||||||
|
}
|
||||||
|
onNewViewRequested: {
|
||||||
|
var component = Qt.createComponent("Browser.qml");
|
||||||
|
var newWindow = component.createObject(desktop);
|
||||||
|
request.openIn(newWindow.webView)
|
||||||
}
|
}
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
desktop.initWebviewProfileHandlers(webview.profile)
|
desktop.initWebviewProfileHandlers(webview.profile)
|
||||||
|
|
|
@ -66,7 +66,8 @@ Rectangle {
|
||||||
element.removeAttr("download");'
|
element.removeAttr("download");'
|
||||||
|
|
||||||
onLinkHovered: {
|
onLinkHovered: {
|
||||||
desktop.currentUrl = hoveredUrl
|
desktop.currentUrl = hoveredUrl;
|
||||||
|
// add an error message for non-fbx files
|
||||||
if (File.isZippedFbx(desktop.currentUrl)) {
|
if (File.isZippedFbx(desktop.currentUrl)) {
|
||||||
runJavaScript(simpleDownload, function(){console.log("ran the JS");});
|
runJavaScript(simpleDownload, function(){console.log("ran the JS");});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue