Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent double save dialog boxes by throttling save click #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zolrath
Copy link

@zolrath zolrath commented Nov 30, 2022

As it takes about half a second for the save dialog box to appear on the first click (it happens more quickly on subsequent clicks). It's easy to click the save button twice and have a second save dialog box appear after you save the image.

This allows the first click through, and then discards further clicks for one second to prevent this from happening.

This doesn't slow any normal usage down since we allow the first click through with no delay but prevents annoyances.

As it takes about half a second for the save dialog box to appear, its easy to click the save button twice and have a second save dialog box appear after you save the image.

Throttle the save button to only be pressed once a second to prevent this from happening.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant