Hide block fix
Hiding a block was done while ignoring which blocks were already hidden. By looking at the state of the visibility list of blocks and the new query, this commits fixes this.
Fixes #20961 (closed)
Backport: release
Edited by Yohann Bearzi (Kitware)