It's unfortunate but if you let some people know you have a mental health condition then they judge and then start to consider if you're capable of the job you're doing even if been doing it ok for a while. When my brother died I went through a difficult stage and with my depression history was concerned about my mental health. My boss did not understand even though he knew the circumstances that had led to me being that way so what would he be like if he knew about the depression history. I've had to work hard since the day I was called in to discuss my work performance to convince him all is ok. It was like that when I was off at my previous job. My boss just didn't trust me because I'd been ill so it made it untenable to stay there as he'd always be second guessing me and that would have made the condition worse.