I like the simplification here of turning two functions into one.  Now that it's doing double-duty, I might suggest renaming it something like `setBlocklyUIVisibility`.  I was a little confused above when I saw a call for `showBlocklyUI` when I thought it should be hidden.  It took me a bit to notice the `false` parameter.