Adds condition to footprint editor and corrects condition for both modedit and pcbnew
Fixes https://gitlab.com/kicad/code/kicad/issues/2497