Postpone the scanning

... to the point when the panel is already ready.

Hopefully, this makes the sidebar connect and appear sooner.

Hopefully improves the situation discussed in #1719.