Is there a way to close the sidebar via Lua

Just a quick question - Is there a way to close the sidebar via code. I’ve set my latest app to use the OVERLAY display mode as I want to be able to access log output without messing up the screen, but it’s annoying every time at the start having to “hide” the sidebar before I can access the controls on the left hand side.

Anyone got any ideas?

displayMode(OVERLAY)
displayMode(FULLSCREEN)

then it will start hidden but when you click to show it it will be in OVERLAY mode

@JakAttak - That works a treat, thanks for the tip