We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f0e3f0 commit 4b4da93Copy full SHA for 4b4da93
pyqt_openai/chat_widget/center/textEditPromptGroup.py
@@ -163,6 +163,7 @@ def handlePaste(self):
163
clipboard = QApplication.clipboard()
164
mime_data = clipboard.mimeData()
165
166
+ # Image file
167
if mime_data.hasImage():
168
image = clipboard.image()
169
@@ -186,7 +187,8 @@ def handlePaste(self):
186
187
188
# Emit the image data
189
self.onPasteFile.emit(image_data)
- elif mime_data.hasText():
190
+ # TXT file
191
+ elif mime_data.hasUrls() and mime_data.hasText():
192
text = mime_data.text()
193
self.onPasteText.emit(text)
194
else:
0 commit comments