How to prevent the preset browser from closing after a selection?
-
Hi guys,
Does anybody know of a way to stop the Hise preset browser from closing after selecting a preset from the list?
-
@leeC Check The Button That you Used To Show Hide The Browser Tab,
And Set It To Not Saving With Presets -
Can't believe I missed this
My main hide/show preset button did have 'SaveInPresets' turned off, but then I checked through and found an old hidden, unused button that had it turned on.
Note to self... Tidy up your mess!
Thanks @Natan
-
@LeeC :folded_hands: Glad to Help Mate
-
On the topic of Presets, does anybody know how to set a preset folder to 'Read-Only' so that users can't overwrite or rename factory presets?
I think that this was introduced a while back, but I can't find any documentation on how to achieve this.
Cheers
-
@LeeC said in How to prevent the preset browser from closing after a selection?:
how to set a preset folder to 'Read-Only'
Yeah, Christoph Added This Up Lately To The Develop Branch.
And No Example Yet -
@Natan Cool, no probs
-
@LeeC I don't know the answer but : There's no function in the API to set a preset as 'Read-Only'. There's an option to set 'factory presets' as Read-Only in the projucer when building Hise. Would that mean the presets you make within HISE are automatically set to 'Read-Only' ?
-
@Matt_SF said in How to prevent the preset browser from closing after a selection?:
Would that mean the presets you make within HISE are automatically set to 'Read-Only' ?
That's how I understand it.
-
@Matt_SF said in How to prevent the preset browser from closing after a selection?:
Would that mean the presets you make within HISE are automatically set to 'Read-Only' ?
Confirmed : Save your presets within HISE to set them as 'Read-Only'.
Note that the preset banks you create are set to 'Read-Only ' too : it means that if you anticipate (like I did) and create an empty "User Bank" for your end user, he won't be able to save presets within this folder.
-
@Matt_SF Thank You Matt, Can You Post A Snippet?
And What Commit You Use? -
@Natan I'm using last develop version. A snippet won't help much because it's not a script-related function, but here is the option you have to enable before compiling HISE :
.Once done, just save your factory presets within HISE and they will be automatically set as 'Read-Only' when you compile your plugin.