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

[stable25] fix(settings): Debounce filepicker calls #1713

Merged
merged 1 commit into from
Mar 27, 2023

Conversation

backportbot-nextcloud[bot]
Copy link

@backportbot-nextcloud backportbot-nextcloud bot commented Mar 27, 2023

  • ⚠️ This backport had conflicts that were resolved with the 'ours' merge strategy and is likely incomplete

backport of #1709

@backportbot-nextcloud backportbot-nextcloud bot added the bug Something isn't working label Mar 27, 2023
@backportbot-nextcloud backportbot-nextcloud bot added this to the Nextcloud 25.0.6 milestone Mar 27, 2023
@artonge
Copy link
Collaborator

artonge commented Mar 27, 2023

/compile amend /

The filepicker falls apart when you open it twice in less than 200ms.
That is because the filepicker closes any previous instance when it
opens, and closing logic delayed by 200ms.

It happens like
1) Open file picker 1
2) Open file picker 2 -> trigger destruction of fp1, continue fp2
   initialization
3) fp2 destruction is finished, but the reference now points to fp1 ->
   fp1 gets destroyed

By adding debounce we can make sure focus+click do not cause a doubly
opened filepicker and the bug described above.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@artonge artonge marked this pull request as ready for review March 27, 2023 11:13
@artonge artonge merged commit 435fea5 into stable25 Mar 27, 2023
@artonge artonge deleted the backport/1709/stable25 branch March 27, 2023 14:11
@skjnldsv skjnldsv mentioned this pull request Apr 13, 2023
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants