status-desktop/ui/app/AppLayouts/Profile/Sections/OpenLinksWithModal.qml

54 lines
1.2 KiB
QML

import QtQuick 2.13
import QtQuick.Controls 2.13
import "../../../../imports"
import "../../../../shared"
import "../../../../shared/status"
ModalPopup {
id: popup
//% "Open links with..."
title: qsTrId("open-links-with---")
onClosed: {
destroy()
}
Column {
anchors.fill: parent
spacing: Style.current.bigPadding
ButtonGroup {
id: openLinksWithGroup
}
StatusRadioButton {
text: "Status"
ButtonGroup.group: openLinksWithGroup
checked: appSettings.openLinksInStatus
onCheckedChanged: {
if (checked) {
appSettings.openLinksInStatus = true
}
}
}
StatusRadioButton {
//% "My default browser"
text: qsTrId("my-default-browser")
ButtonGroup.group: openLinksWithGroup
checked: !appSettings.openLinksInStatus
onCheckedChanged: {
if (checked) {
appSettings.openLinksInStatus = false
}
}
}
}
}
/*##^##
Designer {
D{i:0;autoSize:true;height:480;width:640}
}
##^##*/