Can you take bones out of the setting "Paths" within Display Quality - bones are not paths, they are bones. Ok I can see why they hide, as they are drawn using paths and in your code that's how you're filtering for the Display Quality setting. but please go a bit further with your coding and create a separate class for bones so they can be filtered independently to 'paths'

Currently the workflow involves selecting all bones, and hiding them, then when showing them *all* again, meaning if you have any bones hidden by default as part of your rig, you've not got to re-hide those. And all you wanted was to quickly get the bones out of view so you could tweak a path within the artwork.
Thanking you in advance:-)