**Hi Olli** How to disable listener on FileDownloadWrapper ? thanks a lot

Hi Olli

How to disable listener on FileDownloadWrapper ?

thanks a lot.

Hi,

there’s no functionality like that in the add-on.

-Olli

anchor.removeHref() does the trick, along with wrappedButton.setEnabled(false). However, anchor is protected and has no getter, so you’ll need to extend FileDownloadWrapper with a class of your own to reach it.

Enable it again using setResource(…) and wrappedButton.setEnabled(true)

Kaspar Scherrer:
anchor.removeHref()

thanks a lot for your suggestion.

Olli and Kaspar Scherrer