[guidialog] - fix autoclose by moveing the autoclose logic into UpdateVisibility for ensuring that getframetime returns sane values - thx to jm for the solution
Merge pull request #3027 from Memphiz/fixautoclose

[guidialog] - fix autoclose