farling42 / fvtt-pdf-pager

PDF Pager for Foundry
MIT License
6 stars 4 forks source link

Only call registerSheet when PDFs have been configured. #27

Closed farling42 closed 1 year ago

farling42 commented 1 year ago

In configureActorSettings: Call unregisterSheet and then registerSheet with a list of types for which a PDF has been configured. Add an onchange to the settings, so that we can adjust accordingly. This will prevent the "PDF Sheet" being offered to Actor types for which no PDF has been configured. Also ensure that the file selector for the PDF settings only supports *.pdf sheets.

farling42 commented 1 year ago

Implemented in 0.22.0