Forum

    • Register
    • Login
    • Search
    • Categories

    BrowserForDirectory cancel callback

    Feature Requests
    1
    3
    60
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • d.healey
      d.healey last edited by

      Could we have a method to check if the user pressed the cancel button?

      My purpose for this is I don't want the user to be able to open one file browser until they've closed another, I do this by setting a flag when the browser is opened and resetting it when it's closed, but I don't have a way to detect if it's closed by clicking cancel.

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      1 Reply Last reply Reply Quote 0
      • d.healey
        d.healey last edited by

        @Christoph-Hart I thought of a possibly less intrusive implementation. What about if the callback is always triggered, regardless of if a directory is selected or the cancel button is clicked, and if the cancel button is clicked it returns false in place of a directory?

        What do you think? I could probably implement this myself.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        1 Reply Last reply Reply Quote 0
        • d.healey
          d.healey last edited by d.healey

          Or a much more better solution! Only allow one file/folder browser to be open at a time... with a switch for strange scenarios where people want more than one open at the same time for some reason.

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          23
          Online

          982
          Users

          6.6k
          Topics

          60.7k
          Posts