Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash because "Stop Recording" could be pressed twice
Disable the stop button as soon as it is pressed instead of waiting to do it in the `recordingStopped` function, so it can't be pressed again which caused a crash. The `recordingStopped` function isn't immediately called after pressing stop because perf can take a while to finish after it is asked to terminate (eg: if debuginfod is enabled and has to download symbols, or if the trace is very big).
- Loading branch information