If in a situation the script calls show function with an already dialog visible, there is no way to hide it. Even with subsequent calls of hide();
If in a situation the script calls show function with an already dialog visible, there is no way to hide it. Even with subsequent calls of hide();