earlSt1 / vtt-compendium-folders

Collapsable folders in the compendium directory and folder structures inside compendiums for FoundryVTT
21 stars 18 forks source link

Fix compendium browse buttons for PF1 9.x #219

Closed DrMcCoy closed 11 months ago

DrMcCoy commented 11 months ago

With PF1 9.0 (and still in the current 9.3), the compendium "Browse"-buttons aren't inside the sidebar template anymore. Instead, they are added by a render hook later on, apparently for v11 compatibility. See https://gitlab.com/foundryvtt_pathfinder1e/foundryvtt-pathfinder1/-/commit/c7f500a57d90f35b95b7714a3d5e22614c90e352

This means that adding the buttons in the template for this module creates duplicated buttons (see #217). Removing the extra handling here and just letting the system take care of it just plain works: the button render once and are clickable, etc.

(I don't know what this change means for the v11 version of this module, though.)

earlSt1 commented 11 months ago

Thanks for the contribution!, I'll look into pushing a v10 release soon with this fix