You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My plugin consists of modules. I can enable and disable them specifically.
When this DTR module gets enabled, it adds a FPS DtrEntry.
After I disable and enable it again, then it won't show up anymore.
A possible solution could be to iterate over all plugin-scoped DtrBar services and calling (a new, internal) Remove to just remove it from the Dictionary, without calling Remove on the DtrBarEntry again.
The text was updated successfully, but these errors were encountered:
My plugin consists of modules. I can enable and disable them specifically.
When this DTR module gets enabled, it adds a FPS DtrEntry.
After I disable and enable it again, then it won't show up anymore.
I think this is because when I call Remove, it sets ShouldBeRemoved to true at https://github.com/goatcorp/Dalamud/blob/a042ec9a/Dalamud/Game/Gui/Dtr/DtrBarEntry.cs#L184 and then gets removed by the DtrBar service at https://github.com/goatcorp/Dalamud/blob/a042ec9a/Dalamud/Game/Gui/Dtr/DtrBar.cs#L123-L130, but it doesn't get removed from the Dictionary in the plugin-scoped DtrBar service at https://github.com/goatcorp/Dalamud/blob/a042ec9a/Dalamud/Game/Gui/Dtr/DtrBar.cs#L504.
A possible solution could be to iterate over all plugin-scoped DtrBar services and calling (a new, internal) Remove to just remove it from the Dictionary, without calling Remove on the DtrBarEntry again.
The text was updated successfully, but these errors were encountered: