@lijas90 said in OverlayMidiPanel: keep dragged MIDI file saved inside the plugin:
The directory always opens when the script compiles, not when I press the button.
You've placed the command inside onInit. This is the callback that runs when you hit compile or when the plugin loads.
You need to place the command inside the button callback. - Check my YouTube channel, I have lots of videos showing button callbacks.