cannon: do not reset scene if already resetting
Hitting "reset scene" too quickly can cause the UI to hang because
creating the stack of boxes takes too long. Instead, we now create the
stack of boxes asynchronously then check if they are completed when
trying to reset the scene later.
Pick-to: 6.5 6.5.2 6.6
Change-Id: I3d810489c3de51e2394e10207d92cc2a20bb3021
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
| commit | 631353c141b8e64645518fbc95b46d7dced11ed6 |
| parent | 5ac18bcee0669c615e179bee6d461190a44cf8aa |
| author | Jonas Karlsson <jonas.karlsson@qt.io> |
| committer | Jonas Karlsson <jonas.karlsson@qt.io> |
| commit time | Mon, 26 Jun 2023 16:31:43 +0200 |