Fix autorecover menu always displayed even on manual recover

The if structure was closed too early.