Forcing JUCE dialog and file window via LUA on pannel load #504
-
Hi everybody, In Ctrlr core those property are called : ctrlrNativeAlerts and ctrlrNativeFileDialogs Is there a way to force it (true, false) when loading a panel with a command like this:
or
My arguments are probably wrong because I don't get the desired effect but that would be so nice to be able to force it on loading to avoid those file management bugs with newer macOS. Thanks ! Damien |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The corresponding JUCE class for the File Manager is here : And is called via LuaBinds: ctrlr/Source/Lua/CtrlrLuaUtils.cpp Line 146 in c1f67d2 I found something when calling an open/save window with : for exemple :
The last bool argument is for the file manager type. It's not exactly what I was looking for but it's a good fallback |
Beta Was this translation helpful? Give feedback.
-
Hi @damien! Whatever it is I bet it is: panel:getPanelEditor():setProperty("ctrlrNativeAlerts",1,true) -- 1/0 panel:getPanelEditor():setProperty("ctrlrNativeFileDialogs",0,true) -- 1/0 ... etc. 🐱 |
Beta Was this translation helpful? Give feedback.
The corresponding JUCE class for the File Manager is here :
https://docs.juce.com/master/classFileChooser.html
And is called via LuaBinds:
ctrlr/Source/Lua/CtrlrLuaUtils.cpp
Line 146 in c1f67d2
I found something when calling an open/save window with :
utils.openFileWindow("Load preset from disk", File(""), "*.syx", false)
for exemple :
SysexFileFromDisk = utils.openFileWindow("Load preset from disk", File(""), "*.syx", false)
The last bool argument is for the file manager type.
true is Native OS file window
false is JUCE (ugly but working) file window
It's not exactly w…