Closed
Description
Description
First, this is an extreme case but nonetheless it's a bug and it should be fixed.
If you keep on opening and closing a modal using shortcuts, Files will eventually crash.
We could fix this using RichCommands.
I suggest adding a property (maybe private bool isReady
?) which tells whether the command is ready to be executed (it would be true
only if the modal has been closed). We would read this property when evaluating IsExecutable
. We should apply it to all the command which open modals in Files.
The crash probably happens because we try to open the modal while it's being closed
Steps To Reproduce
- Select a file
- Hit
Delete
key - Instantly hit
Esc
- Hit
Delete
again - Repeat until it crashes
Requirements
- Fix crash that occurs when opening and closing modals quickly
Files Version
Files Preview 2.4.54.0
Windows Version
10.0.22621.1413
Log file
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
✅ Done