From 10d84e96b756c22a54c3ed138539ed56234aae4e Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Thu, 3 Dec 2020 22:19:51 +0100 Subject: [PATCH] clean --- imports/NeoChat/Component/ChatTextInput.qml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/imports/NeoChat/Component/ChatTextInput.qml b/imports/NeoChat/Component/ChatTextInput.qml index 30a5959a5..7ced6cae7 100644 --- a/imports/NeoChat/Component/ChatTextInput.qml +++ b/imports/NeoChat/Component/ChatTextInput.qml @@ -422,11 +422,6 @@ ToolBar { onClicked: { if (Clipboard.hasImage) { - documentHandler.paste() - const localPath = Platform.StandardPaths.writableLocation(Platform.StandardPaths.CacheLocation) + "/screenshots/" + (new Date()).getTime() + ".png" - if (!Clipboard.saveImage(localPath)) return - chatTextInput.attach(localPath) - attachDialog.close() attachDialog.open() } else { var fileDialog = openFileDialog.createObject(ApplicationWindow.overlay)