2020-12-29 20:34:53 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
2021-10-27 09:37:58 +00:00
|
|
|
|
2021-10-27 21:27:49 +00:00
|
|
|
import shared.popups 1.0
|
|
|
|
import shared.controls 1.0
|
2020-12-29 20:34:53 +00:00
|
|
|
|
2021-10-14 11:33:34 +00:00
|
|
|
// TODO: replace with StatusModal
|
2020-12-29 20:34:53 +00:00
|
|
|
ModalPopup {
|
|
|
|
id: popup
|
|
|
|
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "Open links with..."
|
|
|
|
title: qsTrId("open-links-with---")
|
2020-12-29 20:34:53 +00:00
|
|
|
|
|
|
|
onClosed: {
|
|
|
|
destroy()
|
|
|
|
}
|
|
|
|
|
|
|
|
Column {
|
2021-03-19 10:25:29 +00:00
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: Style.current.padding
|
|
|
|
anchors.leftMargin: Style.current.padding
|
|
|
|
|
|
|
|
spacing: 0
|
2020-12-29 20:34:53 +00:00
|
|
|
|
|
|
|
ButtonGroup {
|
|
|
|
id: openLinksWithGroup
|
|
|
|
}
|
|
|
|
|
2021-10-27 09:37:58 +00:00
|
|
|
RadioButtonSelector {
|
|
|
|
title: "Status"
|
2021-03-19 10:25:29 +00:00
|
|
|
buttonGroup: openLinksWithGroup
|
2021-10-20 09:50:50 +00:00
|
|
|
checked: localAccountSensitiveSettings.openLinksInStatus
|
2021-10-27 09:37:58 +00:00
|
|
|
onCheckedChanged: {
|
2020-12-29 20:34:53 +00:00
|
|
|
if (checked) {
|
2021-10-20 09:50:50 +00:00
|
|
|
localAccountSensitiveSettings.openLinksInStatus = true
|
2020-12-29 20:34:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-10-27 09:37:58 +00:00
|
|
|
RadioButtonSelector {
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "My default browser"
|
2021-10-27 09:37:58 +00:00
|
|
|
title: qsTrId("my-default-browser")
|
2021-03-19 10:25:29 +00:00
|
|
|
buttonGroup: openLinksWithGroup
|
2021-10-20 09:50:50 +00:00
|
|
|
checked: !localAccountSensitiveSettings.openLinksInStatus
|
2021-10-27 09:37:58 +00:00
|
|
|
onCheckedChanged: {
|
2020-12-29 20:34:53 +00:00
|
|
|
if (checked) {
|
2021-10-20 09:50:50 +00:00
|
|
|
localAccountSensitiveSettings.openLinksInStatus = false
|
2020-12-29 20:34:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
|
|
|
D{i:0;autoSize:true;height:480;width:640}
|
|
|
|
}
|
|
|
|
##^##*/
|