No internet connection
  1. Home
  2. How to

Can someone explain "Wait For No Modals"?

By Chad Wahlbrink @Chad2022-01-11 19:21:38.584Z

Can someone explain "Wait For No Modals"? For instance:

sf.ui.proTools.waitForNoModals()

I'm unsure what a "Modal" means in the javascript world (or Soundflow world).

Thanks so much 🏄‍♂️✨🏄‍♂️

Solved in post #3, click to view
  • 2 replies
  1. Chad Wahlbrink @Chad2022-01-11 20:20:19.453Z

    After digging on some javascript sites, it seems as though a "modal" is just any dialog box/popup window on the screen.

    So is this just a blanket way of waiting for all dialog boxes and pop-up windows to be cleared?

    1. Hey @chadwahlbrink !

      Right. Examples of modals in Pro Tools would be the progress bar window that shows up when rendering an AudioSuite process or when bouncing.
      These are the two most common uses of waitForNoModals() you'll see around!

      Reply3 LikesSolution