cs96and / FoundryVTT-damage-log

FoundryVTT module to report all damage and healing to a separate chat tab
MIT License
9 stars 9 forks source link

Bug with minimal UI #8

Closed DerHerzog7 closed 3 years ago

DerHerzog7 commented 3 years ago

This seems to be a bug with Minimal UI. When you close the sidebar then click "chat", everything pops up just fine. When you re-open the sidebar, the chat-log gets added as a duplicate. This seems to happen each time you open and close the side bar.

See image.

image

cs96and commented 3 years ago

Thanks for the bug report. Unfortunately I won't be able to look into this properly until next week. In the meantime, you could try opening Data/modules/damage-log/main.js in your Foundry data directory and changing line 75 from...

Hooks.on("renderChatLog" ....

To

Hooks.once("renderChatLog" ...

I.e. change the on to once

Let me know if it works

DerHerzog7 commented 3 years ago

It works for duplication error. Also, if the sidebar is minimised, it doesnt show at all... But I think it's a good temporary fix :) We can just keep the sidebar docked.

image

cs96and commented 3 years ago

2ea683c2a281ef9439dae2c3b4a719c3a7514a89

cs96and commented 3 years ago

Fixed in v1.4.2