Moved check to make sure mouse is not hidden twice outside of invoke for Cursor.Hide.