diff --git a/qml/pages/MainView.qml b/qml/pages/MainView.qml index b136e18..a9c7787 100644 --- a/qml/pages/MainView.qml +++ b/qml/pages/MainView.qml @@ -138,11 +138,15 @@ Page { contentHeight: Theme.itemSizeMedium width: parent.width - function remove() { - // Show 5s countdown, then delete from DB and List + function remove() { + // Show 5s countdown, then delete from DB and List remorseAction("Deleting", function() { DB.removeOTP(title, secret); otpListModel.remove(index) }) } + onClicked: { + Clipboard.text = otp + } + ListView.onRemove: animateRemoval() Rectangle { id: listRow