Remove clipboard workaround

Turns out, I somehow forgot about the Clipboard type while implementing the info page. Thanks @chstem
This commit is contained in:
John Gibbon 2020-10-31 20:40:54 +01:00
parent 72315312d6
commit 70dc3c8571

View file

@ -400,20 +400,9 @@ Page {
icon.source: "image://theme/icon-m-clipboard"
anchors.verticalCenter: inviteLinkItem.verticalCenter
onClicked: {
inviteLinkField.selectAll();
inviteLinkField.copy();
inviteLinkField.select(0,0);
Clipboard.text = groupFullInformation.invite_link
infoNotification.show(qsTr("The Invite Link has been copied to the clipboard."));
}
TextField {
id: inviteLinkField
width: 0
height: 0
text: groupFullInformation.invite_link ? groupFullInformation.invite_link : ""
visible: false
readOnly: true
opacity: 0
}
}
}