Is it possible to disable/enable module programmatically?

I have an app consisting of two modules - 1. an admin page, 2. issue glance.
I want to have a checkbox/toggle on the admin page which would enable/disable the issue glance module.
Is there a way to do this using display conditions?

This is not possible