Fix dialog not going away after printing
This happened because the wrong condition was being checked to close the message dialog. Now it will be closed when rendering is finished, not when printing is finished.
This happened because the wrong condition was being checked to close the message dialog. Now it will be closed when rendering is finished, not when printing is finished.