fix(@desktop/browser): close popup when opening link
fixes #3155 Also when remembering the choice, update the settings
This commit is contained in:
parent
7d8c0d676d
commit
9874f82a58
|
@ -31,6 +31,9 @@ ModalPopup {
|
|||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
onClicked: {
|
||||
appSettings.showBrowserSelector = !rememberChoiceCheckBox.checked
|
||||
if (rememberChoiceCheckBox.checked) {
|
||||
appSettings.openLinksInStatus = true
|
||||
}
|
||||
changeAppSection(Constants.browser)
|
||||
browserLayoutContainer.item.openUrlInNewTab(popup.link)
|
||||
popup.close()
|
||||
|
@ -44,7 +47,11 @@ ModalPopup {
|
|||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
onClicked: {
|
||||
appSettings.showBrowserSelector = !rememberChoiceCheckBox.checked
|
||||
if (rememberChoiceCheckBox.checked) {
|
||||
appSettings.openLinksInStatus = false
|
||||
}
|
||||
Qt.openUrlExternally(popup.link)
|
||||
popup.close()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue