I cable detection is not working for you, how can we check if disable button should be shown?
(As I understand you enable/disable button is redundant with disconnected cable)