Avoid to make the current board selected if it is disabled

Signed-off-by: emanuele <emanuele45@gmail.com>