1
0

qml: use only genericsharedialog component defined in main

This commit is contained in:
Sander van Grieken
2022-08-15 17:50:37 +02:00
parent 46641e7874
commit 153a9f3a53
5 changed files with 24 additions and 38 deletions

View File

@@ -242,7 +242,9 @@ Pane {
icon.source: '../../icons/share.png'
icon.color: 'transparent'
onClicked: {
var dialog = share.createObject(root, { 'title': qsTr('Channel node ID'), 'text': channeldetails.pubkey })
var dialog = app.genericShareDialog.createObject(root,
{ title: qsTr('Channel node ID'), text: channeldetails.pubkey }
)
dialog.open()
}
}
@@ -258,11 +260,6 @@ Pane {
channelid: root.channelid
}
Component {
id: share
GenericShareDialog {}
}
Component {
id: closechannel
CloseChannelDialog {}