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