I need an Idiom about improving a bad situation [duplicate]

Solution 1:

"When the going gets tough, the tough get going!"

Said to emphasize that when conditions become difficult, strong people take action. Cambridge Dictionary