mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-02 09:46:38 +00:00
426c116bac
Use it as import shared 1.0, import shared.controls 1.0 etc instead of import "../../../shared" Closes #3934
63 lines
1.4 KiB
QML
63 lines
1.4 KiB
QML
import QtQuick 2.13
|
|
import QtQuick.Controls 2.13
|
|
|
|
import utils 1.0
|
|
|
|
import shared.popups 1.0
|
|
import shared.controls 1.0
|
|
|
|
// TODO: replace with StatusModal
|
|
ModalPopup {
|
|
id: popup
|
|
|
|
//% "Open links with..."
|
|
title: qsTrId("open-links-with---")
|
|
|
|
onClosed: {
|
|
destroy()
|
|
}
|
|
|
|
Column {
|
|
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
|
|
|
|
ButtonGroup {
|
|
id: openLinksWithGroup
|
|
}
|
|
|
|
RadioButtonSelector {
|
|
title: "Status"
|
|
buttonGroup: openLinksWithGroup
|
|
checked: appSettings.openLinksInStatus
|
|
onCheckedChanged: {
|
|
if (checked) {
|
|
appSettings.openLinksInStatus = true
|
|
}
|
|
}
|
|
}
|
|
RadioButtonSelector {
|
|
//% "My default browser"
|
|
title: qsTrId("my-default-browser")
|
|
buttonGroup: openLinksWithGroup
|
|
checked: !appSettings.openLinksInStatus
|
|
onCheckedChanged: {
|
|
if (checked) {
|
|
appSettings.openLinksInStatus = false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/*##^##
|
|
Designer {
|
|
D{i:0;autoSize:true;height:480;width:640}
|
|
}
|
|
##^##*/
|