This fixes the issue introduced in #2509 which would cause the main view to be hidden while configuring widgets.