qml: use only genericsharedialog component defined in main
This commit is contained in:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user