Skip to content

Commit fa805c8

Browse files
committed
Make "copy prompt" also copy directly into the clipboard #1678
1 parent e9f9cbd commit fa805c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ai_diffusion/ui/generation.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,9 @@ def _copy_prompt(self):
394394
if isinstance(active, RootRegion):
395395
active.negative = job.params.metadata.get("negative_prompt", "")
396396

397+
if clipboard := QGuiApplication.clipboard():
398+
clipboard.setText(job.params.prompt)
399+
397400
if self._model.workspace is Workspace.custom and self._model.document.is_active:
398401
self._model.custom.try_set_params(job.params.metadata)
399402

0 commit comments

Comments
 (0)