Preset hander....
-
PresetHandler.setPostCallback() does not execute when you use the preset panel to create a new preset.
-
I think it triggers after a preset has been loaded not after it's been created.
-
@lindon delete the first preset in a category and the whole category disappears...(from view - ts not deleted)
-
@d-healey -okay so its nearly not any use at all then.. I want to display the preset name in the main UI, if you change preset then the callback executes and I can show the preset name, but if the user adds a preset then it doesnt and my name display doesnt update...
All of this painfully painfully slowly - the preset browser is bad bad bad now...
-
@lindon said in Preset hander....:
delete the first preset in a category and the whole category disappears...(from view - ts not deleted)
I thought I fixed that one. I'll take a look at it, should be an easy fix.
@lindon said in Preset hander....:
if the user adds a preset then it doesnt and my name display doesnt update...
I don't think there is any mechanism to respond to preset creation. A new callback would probably have to be added for this.
-
@lindon said in Preset hander....:
@lindon delete the first preset in a category and the whole category disappears...(from view - ts not deleted)
I can't recreate this. Are you using develop branch? Does it also happen on MacOS?
-
@d-healey yes I'm using develop branch (for my sins) and I m not currently on the Mac...
-
@lindon said in Preset hander....:
I m not currently on the Mac...
Could be another Windows only issue. Let me know if you do test it on MacOS.
-
@d-healey - currently I dont have a lot of time - I'm thinking of going back to Master as it stands Develop is nearly unusable - and definitely unshipable - on Windows...
-
@lindon said in Preset hander....:
if the user adds a preset then it doesnt and my name display doesnt update.
I'm using a timer to refresh my preset label text. That might work for your situation
-
@dustbro Could you give more details? When do you start the timer?
-
@d-healey When the user clicks on a button to open, save or change preset.Then I let the timer run for 10-15 seconds
-
@dustbro Sounds like you're using custom buttons, Lindon is using the built in preset browser functionality I think.
-
Lindon can you make a minimal project that slows down the preset browser? It‘s fine here but I don‘t use many presets for the current project.
-
Here you go. This works fine on GNU/Linux (and presumably MacOS) but on Windows I notice the same slow down Lindon demonstrated in his video.
@Lindon Btw I tested on Windows the deleting a preset = hides the category thing and I couldn't recreate the issue. Could you post a video so I know I'm not just misunderstanding how the problem is triggered?
-
@d-healey My project's Preset Browser is fine on Windows with tons of presets. It's built with a commit from 30th November of Develop, so this could be a more recent issue.
-
@d-healey - yeah its not doing it for me now either.....the browser is desperately slow however....
-
@dustbro said in Preset hander....:
@lindon said in Preset hander....:
if the user adds a preset then it doesnt and my name display doesnt update.
I'm using a timer to refresh my preset label text. That might work for your situation
That was the solution I used for the last couple of years... but I removed it and applied the pre and post load callbacks, as I was trying (anything) to get the preset browser to speed up - guess I'm going back there....
-
@lindon said in Preset hander....:
@d-healey - yeah its not doing it for me now either.....the browser is desperately slow however....
-damit - now its doing it again... its definitely there - sometimes - but it seems to be the preset browser is slowing down my whole machine - I can hardly edit anything in HISE when its open...and its failing to render the preset browser background part of the time too, its definitely broken in some way.
-