Re-add mysteriously missing connections for custom env variables checkbox

- Probably removed during QtDesigner changes to .ui file; code into .cpp file instead
- Possible fix for #6961