fix the roof while the sun is shining
Verb
Meaning
fix the roof while the sun is shining (third-person singular simple present fixes the roof while the sun is shining, present participle fixing the roof while the sun is shining, simple past and past participle fixed the roof while the sun was shining)
(proverbial) To deal with a problem or potential problem while conditions are favorable.