]> git.deb.at Git - rhonda/theotherroles.git/commit
Fix nested option hiding fix-nested-option-bug
authorRhonda D'Vine <rhonda@deb.at>
Sun, 6 Sep 2026 07:43:34 +0000 (09:43 +0200)
committerRhonda D'Vine <rhonda@deb.at>
Sun, 6 Sep 2026 07:43:34 +0000 (09:43 +0200)
commit9ada84cba63022a3d47ee6cc22451eeb6f2970a3
tree16865342146848568e25170665a316227634e96c
parent7de946ceedc6479ed32a96618c06a612ca53dead
Fix nested option hiding

The code checked only two layers deep for nested hidden flag.  In the
case of the deputy but also at least with the jackal this wasn't
sufficient.  The checking was put into a helper method that would loop
until it doesn't find another parent anymore that is hidden.

On top of that, in drawTab the check didn't consider invertedParent so
that was is now also properly considered.
TheOtherRoles/Modules/CustomOptions.cs