Eyes that are inflamed or infected can become sensitive to light. So you'd better wear sunglasses before going out, but I think you should have a rest at home.
You need to put on your sunglasses to avoid the strong sunlight, also if you use a computer indoors, you need to control the brightness and dim it as needed.
The eye doctor says, solar ultraviolet radiation can even curse an inflammation of the front surfaces of the eye, so you must wear sunglasses to reduce sun glare and protect your eyes from the direct effects of the sunlight.