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
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
onClicked: {
|
onClicked: {
|
||||||
appSettings.showBrowserSelector = !rememberChoiceCheckBox.checked
|
appSettings.showBrowserSelector = !rememberChoiceCheckBox.checked
|
||||||
|
if (rememberChoiceCheckBox.checked) {
|
||||||
|
appSettings.openLinksInStatus = true
|
||||||
|
}
|
||||||
changeAppSection(Constants.browser)
|
changeAppSection(Constants.browser)
|
||||||
browserLayoutContainer.item.openUrlInNewTab(popup.link)
|
browserLayoutContainer.item.openUrlInNewTab(popup.link)
|
||||||
popup.close()
|
popup.close()
|
||||||
|
@ -44,7 +47,11 @@ ModalPopup {
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
onClicked: {
|
onClicked: {
|
||||||
appSettings.showBrowserSelector = !rememberChoiceCheckBox.checked
|
appSettings.showBrowserSelector = !rememberChoiceCheckBox.checked
|
||||||
|
if (rememberChoiceCheckBox.checked) {
|
||||||
|
appSettings.openLinksInStatus = false
|
||||||
|
}
|
||||||
Qt.openUrlExternally(popup.link)
|
Qt.openUrlExternally(popup.link)
|
||||||
|
popup.close()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue