Remove clipboard workaround
Turns out, I somehow forgot about the Clipboard type while implementing the info page. Thanks @chstem
This commit is contained in:
parent
72315312d6
commit
70dc3c8571
1 changed files with 1 additions and 12 deletions
|
@ -400,20 +400,9 @@ Page {
|
||||||
icon.source: "image://theme/icon-m-clipboard"
|
icon.source: "image://theme/icon-m-clipboard"
|
||||||
anchors.verticalCenter: inviteLinkItem.verticalCenter
|
anchors.verticalCenter: inviteLinkItem.verticalCenter
|
||||||
onClicked: {
|
onClicked: {
|
||||||
inviteLinkField.selectAll();
|
Clipboard.text = groupFullInformation.invite_link
|
||||||
inviteLinkField.copy();
|
|
||||||
inviteLinkField.select(0,0);
|
|
||||||
infoNotification.show(qsTr("The Invite Link has been copied to the clipboard."));
|
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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue