fixed url unfurling redirects to the wrong place
This commit is contained in:
parent
aa5d6e0ce3
commit
848f21cd20
|
@ -32,7 +32,7 @@ StatusAppTwoPanelLayout {
|
|||
property int profileContentWidth: Math.max(contentMinWidth, Math.min(profileContainer.width * 0.8, contentMaxWidth))
|
||||
anchors.fill: parent
|
||||
|
||||
currentIndex: profileView.store.selectedMenuItem
|
||||
currentIndex: Config.currentMenuTab
|
||||
|
||||
onCurrentIndexChanged: {
|
||||
if(visibleChildren[0] === ensContainer){
|
||||
|
|
|
@ -13,8 +13,6 @@ Column {
|
|||
property alias mainMenuItems: mainMenuItems.model
|
||||
property alias settingsMenuItems: settingsMenuItems.model
|
||||
property alias extraMenuItems: extraMenuItems.model
|
||||
|
||||
property int selectedMenuItem
|
||||
property bool browserMenuItemEnabled: false
|
||||
|
||||
signal menuItemClicked(var menu_item)
|
||||
|
@ -25,7 +23,7 @@ Column {
|
|||
itemId: model.menu_id
|
||||
title: model.text
|
||||
icon.name: model.icon
|
||||
selected: root.selectedMenuItem === model.menu_id
|
||||
selected: Config.currentMenuTab === model.menu_id
|
||||
onClicked: root.menuItemClicked(model)
|
||||
}
|
||||
}
|
||||
|
@ -39,7 +37,7 @@ Column {
|
|||
itemId: model.menu_id
|
||||
title: model.text
|
||||
icon.name: model.icon
|
||||
selected: root.selectedMenuItem === model.menu_id
|
||||
selected: Config.currentMenuTab === model.menu_id
|
||||
onClicked: root.menuItemClicked(model)
|
||||
visible: model.ifEnabled !== "browser" || root.browserMenuItemEnabled
|
||||
badge.value: (!mnemonicModule.isBackedUp && (settingsMenuDelegate.title ===
|
||||
|
@ -59,7 +57,7 @@ Column {
|
|||
itemId: model.menu_id
|
||||
title: model.text
|
||||
icon.name: model.icon
|
||||
selected: root.selectedMenuItem === model.menu_id
|
||||
selected: Config.currentMenuTab === model.menu_id
|
||||
visible: model.ifEnabled !== "browser" || root.browserMenuItemEnabled
|
||||
onClicked: root.menuItemClicked(model)
|
||||
}
|
||||
|
|
|
@ -66,7 +66,6 @@ QtObject {
|
|||
property int signout_id: 14
|
||||
|
||||
property bool browserMenuItemEnabled: localAccountSensitiveSettings.isBrowserEnabled
|
||||
property int selectedMenuItem: 0
|
||||
|
||||
property ListModel mainMenuItems: ListModel {
|
||||
ListElement {
|
||||
|
|
|
@ -40,7 +40,6 @@ Item {
|
|||
mainMenuItems: store.mainMenuItems
|
||||
settingsMenuItems: store.settingsMenuItems
|
||||
extraMenuItems: store.extraMenuItems
|
||||
selectedMenuItem: store.selectedMenuItem
|
||||
browserMenuItemEnabled: store.browserMenuItemEnabled
|
||||
|
||||
|
||||
|
@ -48,7 +47,7 @@ Item {
|
|||
if (!!menu_item.function_name && menu_item.function_name === "exit") {
|
||||
return confirmDialog.open()
|
||||
}
|
||||
store.selectedMenuItem = menu_item.menu_id
|
||||
Config.currentMenuTab = menu_item.menu_id
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue