I do not tell my employer everything, that is a scenario to demonstrate that you doing a second job violates basic trust, or even the contract. That is different than you looking for a new job, which should always be at the back of any manager's mind.