mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
Fix accidentally breaking widget
This commit is contained in:
parent
b82b4f40ce
commit
c3e3e4aa85
1 changed files with 2 additions and 4 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Linq;
|
|
||||||
|
|
||||||
using Dalamud.Bindings.ImGui;
|
using Dalamud.Bindings.ImGui;
|
||||||
using Dalamud.Game.Addon.Lifecycle;
|
using Dalamud.Game.Addon.Lifecycle;
|
||||||
|
|
@ -58,12 +57,11 @@ public class AddonLifecycleWidget : IDataWindowWidget
|
||||||
{
|
{
|
||||||
if (!this.Ready) return;
|
if (!this.Ready) return;
|
||||||
|
|
||||||
foreach (var eventType in Enum.GetValues<AddonEvent>())
|
foreach (var (listenerType, listeners) in this.AddonLifecycle.EventListeners)
|
||||||
{
|
{
|
||||||
if (ImGui.CollapsingHeader(eventType.ToString()))
|
if (ImGui.CollapsingHeader(listenerType.ToString()))
|
||||||
{
|
{
|
||||||
ImGui.Indent();
|
ImGui.Indent();
|
||||||
var listeners = this.AddonLifecycle.EventListeners.Where(listener => listener.EventType == eventType).ToList();
|
|
||||||
|
|
||||||
if (listeners.Count == 0)
|
if (listeners.Count == 0)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue