hotfix: unbreak opening URL in the builtin browser
The functions needs to stay at the toplevel to be accessible from AppMain Fixes: #7434
This commit is contained in:
parent
fb7989db55
commit
28ca3bd075
|
@ -29,6 +29,11 @@ StatusSectionLayout {
|
||||||
property var globalStore
|
property var globalStore
|
||||||
property var sendTransactionModal
|
property var sendTransactionModal
|
||||||
|
|
||||||
|
function openUrlInNewTab(url) {
|
||||||
|
var tab = _internal.addNewTab()
|
||||||
|
tab.item.url = _internal.determineRealURL(url)
|
||||||
|
}
|
||||||
|
|
||||||
onNotificationButtonClicked: Global.openActivityCenterPopup()
|
onNotificationButtonClicked: Global.openActivityCenterPopup()
|
||||||
QtObject {
|
QtObject {
|
||||||
id: _internal
|
id: _internal
|
||||||
|
@ -141,12 +146,6 @@ StatusSectionLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: Style.current.inputBackground
|
color: Style.current.inputBackground
|
||||||
|
|
||||||
|
|
||||||
function openUrlInNewTab(url) {
|
|
||||||
var tab = _internal.addNewTab()
|
|
||||||
tab.item.url = _internal.determineRealURL(url)
|
|
||||||
}
|
|
||||||
|
|
||||||
WebProviderObj {
|
WebProviderObj {
|
||||||
id: provider
|
id: provider
|
||||||
createAccessDialogComponent: function() {
|
createAccessDialogComponent: function() {
|
||||||
|
@ -323,7 +322,7 @@ StatusSectionLayout {
|
||||||
FavoriteMenu {
|
FavoriteMenu {
|
||||||
id: favoriteMenu
|
id: favoriteMenu
|
||||||
openInNewTab: function (url) {
|
openInNewTab: function (url) {
|
||||||
browserWindow.openUrlInNewTab(url)
|
root.openUrlInNewTab(url)
|
||||||
}
|
}
|
||||||
onEditFavoriteTriggered: {
|
onEditFavoriteTriggered: {
|
||||||
Global.openPopup(addFavoriteModal, {
|
Global.openPopup(addFavoriteModal, {
|
||||||
|
@ -614,7 +613,7 @@ StatusSectionLayout {
|
||||||
Connections {
|
Connections {
|
||||||
target: browserSection
|
target: browserSection
|
||||||
onOpenUrl: {
|
onOpenUrl: {
|
||||||
browserWindow.openUrlInNewTab(url);
|
root.openUrlInNewTab(url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue