HISE Logo Forum
    • Categories
    • Register
    • Login

    Preset Browser doesn't update after expansion change

    Scheduled Pinned Locked Moved General Questions
    12 Posts 2 Posters 104 Views
    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.
    • bendursoB
      bendurso @bendurso
      last edited by

      @bendurso If I reset the preset browser like this, it seems to work.. is it a good approach? Or there is a better way?

      FloatingTile.set("ContentType", "");
      FloatingTile.set("ContentType", "PresetBrowser");
      
      bendursoB 1 Reply Last reply Reply Quote 0
      • bendursoB
        bendurso @bendurso
        last edited by

        @bendurso Actually, this works... but I realized that the search bar only functions if I select the expansion manually in the preset browser (and I'm not using ShowExpansionsAsColumn).

        When I change the expansion using Engine.setCurrentExpansion or ExpansionHandler.setCurrentExpansion, the search bar in the preset browser doesn't work.

        This makes me think that the expansion isn't being updated properly.

        Any ideas on how to update the expansion in the preset browser without using the expansion column, and still have the search bar work?

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

          @bendurso said in Preset Browser doesn't update after expansion change:

          Any ideas on how to update the expansion in the preset browser

          I don't think you can. You'd need to modify the source code.

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

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

            @d-healey Screenshot 2025-04-27 at 6.44.47 PM.png

            Doesn't this mean it updates the preset browser with the selected expansion?

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

              @bendurso That implies it would, but maybe it only works if the expansion column is visible.

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

              bendursoB 1 Reply Last reply Reply Quote 1
              • bendursoB
                bendurso @d.healey
                last edited by

                @d-healey Oh yeah, that was the problem.

                I changed the expansionPackLoaded from PresetBrowser.cpp from this

                void PresetBrowser::expansionPackLoaded(Expansion* currentExpansion)
                {
                	refreshColumnUpdatesAfterExpansionSwitch = true;
                
                	if(expansionColumn != nullptr && currentExpansion != nullptr)
                		selectionChanged(-1, -1, currentExpansion->getRootFolder(), false);
                	else
                		selectionChanged(-1, -1, File(), false);
                }
                

                to this:

                void PresetBrowser::expansionPackLoaded(Expansion* currentExpansion)
                {
                    refreshColumnUpdatesAfterExpansionSwitch = true;
                
                    if(currentExpansion != nullptr)
                        selectionChanged(-1, -1, currentExpansion->getRootFolder(), false);
                    else
                        selectionChanged(-1, -1, File(), false);
                }
                

                And now it works without the expansion column:)

                bendursoB 1 Reply Last reply Reply Quote 0
                • bendursoB
                  bendurso @bendurso
                  last edited by bendurso

                  @d-healey Oh and the favorites are working now too! Amazing! That was the problem too.

                  d.healeyD 1 Reply Last reply Reply Quote 1
                  • d.healeyD
                    d.healey @bendurso
                    last edited by

                    @bendurso Might be good to make a pull request on that, I can't see any down side

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

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

                      @d-healey Oh, I don't know how to make a github request

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

                        @bendurso Commit it to your working branch. Then checkout Christoph's develop branch. Then create a new branch (it will use Christoph's as the base). Then cherry-pick your commit onto that new branch and push it to github. Then go to github to create the PR.

                        I think I showed this recently in the modding the preset browser video (might only be on Patreon).

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

                        bendursoB 1 Reply Last reply Reply Quote 1
                        • bendursoB
                          bendurso @d.healey
                          last edited by

                          @d-healey Oh nice thanks I will check it, i'm a patreon :)

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

                          49

                          Online

                          1.7k

                          Users

                          11.7k

                          Topics

                          102.1k

                          Posts