Skip to content

Conversation

@WeedLordVegeta420
Copy link
Contributor

Refactors copy/paste event handlers to no longer be anonymous functions, so that we can detach in order to prevent them from being attached multiple times.

I'm not sure if it's some quirk of the UI itself or the plugin UI library, but the PathElementListener function was consistently triggering twice which was leading to this issue (only noticeable when copy/pasting into the control, not when clicking the copy/paste buttons).

@discourse-stashapp
Copy link

This pull request has been mentioned on Stash. There might be relevant details there:

https://discourse.stashapp.cc/t/tagcopypaste/1858/4

@DogmaDragon DogmaDragon merged commit d9a46b8 into stashapp:main Nov 30, 2025
1 check passed
@DogmaDragon DogmaDragon added type:plugin Plugins object:image Affects or is triggered by image object object:gallery Affects or is triggered by gallery object object:performer Affects or is triggered by performer object object:studio Affects or is triggered by studio object object:group Affects or is triggered by group object labels Nov 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

object:gallery Affects or is triggered by gallery object object:group Affects or is triggered by group object object:image Affects or is triggered by image object object:performer Affects or is triggered by performer object object:studio Affects or is triggered by studio object type:plugin Plugins

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants