Hello everyone!
For the past few days, I've noticed something strange in CodeBlocks. If I have a project and I have "Save/Restore Project Layout" enabled along with "Fold all on file open", it leads to strange behaviour. If I have the entire file unfolded and I exit and start the project again, it works as expected and folds the code on file open. However, if it's folded and I restart the project, it leads to unfolding everything. I'm guessing it uses toggle folding instead of using the fold all command, but i'm not sure.
Which version are you using?. IIRC this was fixed more than a year ago.