Yup, that's a good point. I fixed this a slightly different way: I just added a parameter to `ModalBar.close()` saying whether it should restore the selection itself, and moved the selection/scroll pos restoration code to `QuickNavigateDialog.close()` so it happens (synchronously) after `ModalBar.close()`, which lets us eliminate this extra timeout. Seems cleaner than passing all the info into ModalBar.