Skip to content

Conversation

@backportbot-nextcloud
Copy link

backport of #1709

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 <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
@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 26.0.1 milestone Mar 27, 2023
@artonge artonge enabled auto-merge March 27, 2023 10:08
@artonge artonge merged commit 2af0078 into stable26 Mar 27, 2023
@artonge artonge deleted the backport/1709/stable26 branch March 27, 2023 10:58
@skjnldsv skjnldsv mentioned this pull request Apr 13, 2023
8 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.

3 participants