@@ -18,7 +18,7 @@ ColumnLayout {
1818 description: " bitcoincore.org"
1919 link: " https://bitcoincore.org"
2020 }
21- onClicked: loadedItem .clicked ( )
21+ onClicked: openPopup ( loadedItem .link )
2222 }
2323 Separator { Layout .fillWidth : true }
2424 Setting {
@@ -30,7 +30,7 @@ ColumnLayout {
3030 description: " github.com/bitcoin/bitcoin"
3131 link: " https://github.com/bitcoin/bitcoin"
3232 }
33- onClicked: loadedItem .clicked ( )
33+ onClicked: openPopup ( loadedItem .link )
3434 }
3535 Separator { Layout .fillWidth : true }
3636 Setting {
@@ -42,7 +42,7 @@ ColumnLayout {
4242 description: " MIT"
4343 link: " https://opensource.org/licenses/MIT"
4444 }
45- onClicked: loadedItem .clicked ( )
45+ onClicked: openPopup ( loadedItem .link )
4646 }
4747 Separator { Layout .fillWidth : true }
4848 Setting {
@@ -57,7 +57,7 @@ ColumnLayout {
5757 iconWidth: 18
5858 iconHeight: 18
5959 }
60- onClicked: loadedItem .clicked ( )
60+ onClicked: openPopup ( loadedItem .link )
6161 }
6262 Separator { Layout .fillWidth : true }
6363 Setting {
@@ -72,4 +72,14 @@ ColumnLayout {
7272 aboutSwipe .incrementCurrentIndex ()
7373 }
7474 }
75+ ExternalPopup {
76+ id: confirmPopup
77+ anchors .centerIn : Overlay .overlay
78+ width: parent .width
79+ }
80+
81+ function openPopup (link ) {
82+ confirmPopup .link = link
83+ confirmPopup .open ()
84+ }
7585}
0 commit comments