I'm using JFXDialog in my program to show that the program's main function is loading. I use the JFXSpinner to show this. The issue is that when the loading dialog is shown, it can be closed when clicked anywhere outside the dialogue. I tried using the 3rd constructor of JFXDialog where you set overlayClose, however whether I set it to true or false, it changes nothing.
Does anyone happen to know what can be done to prevent the dialog from being closed when clicking away?