The part of the GUI that this setting is relevant for does not exist in a --disable-wallet build.

The part of the GUI that this setting is relevant for does not exist in a --disable-wallet build.

As the previous variant of my solution was failing on some architectures/configurations, I have now simplified it a lot. There's now only one #ifdef/endif left that disables the label/textbox for non-wallet builds.