Potentially doing this more than once to not risk failing with all your food? So maybe more clicks...
Click 6 - Exit
Walk back to Bedroll
Click 7 - Click on Bedroll
Click 8 - add the food (Automatically chooses food from Camp Supplies to reach 40, defaults to fresh first)
Click 10 - Sleep
This, I do not like. Sorry. I'd much rather have the game automatically do a few of these item management things for me.
Clicks 1 and 2 can be replaced with "Game auto tosses useless, spoiled food not worth a gp. Why make us make 2 clicks to toss?
Clicks 3-6 can also be auto. Why make us manually do this? When you rest, character with highest Survival skill automatically rolls to see how much food is preserved of all the food you don't use that day.