fix(@desktop/browser): close popup when opening link

fixes #3155

Also when remembering the choice, update the settings
This commit is contained in:
Anthony Laibe 2021-08-05 15:15:55 +02:00 committed by Iuri Matias
parent 7d8c0d676d
commit 9874f82a58
1 changed files with 7 additions and 0 deletions

View File

@ -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()
}
}