Skip to content

[BUG] Browsing files or models in nested file directory gets stuck in bottom directory #282

@sdatkinson

Description

@sdatkinson

I sometimes have NAM files and IRs in a file tree where a given directory contains both files and subdirectories. Example:

- models/
  - model1.nam
  - subfolder/
    - model2.nam

If this is the case, then if I select model1, then click the Right arrow, I'll get model2, and I'll get stuck in that subdirectory (I won't be able to click Left and get model1 again).

If my file tree is structured such that I only have directories or only have files in a given directory, then things are ok--I'll never pick a directory that doesn't have a file in it, and when I pick a file, there won't be any subdirectories next to it that I might "fall into" and not be able to get back out.

This can be solved by not recursing down into subdirectories. This could be implemented as an option for IDirBrowseControlBase::ScanDirectory

Marking as high priority because I won't release the next version without a fix to this--I'm sure I won't hear the end to it 😅

Need to raise an Issue on iPlug2--I suspect this wasn't intended and the inclusion of the recursive argument may be of interest there as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:highimportant

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions