Revert "Small correction in dynamic ribbon to avoid some weird behaviour in the GP editor"

This reverts commit 6b42f1b7b75b8f89e7aaf9f045d34cc5d78dd88b.