# WindowSystem.cs

* Changed GetWindows() return type from Window[] to IReadOnlyList
This commit is contained in:
LadyDefile 2022-03-07 16:06:13 -06:00
parent b38894a8b1
commit cbf9fbc8e2

View file

@ -92,10 +92,10 @@ namespace Dalamud.Interface.Windowing
public Window? GetWindow(string windowName) => this.windows.FirstOrDefault(w => w.WindowName == windowName);
/// <summary>
/// Returns an array of all currently registered windows.
/// Returns a read only list of all currently registered windows.
/// </summary>
/// <returns>Returns window collection as a <see cref="Window"/> array.</returns>
public Window[] GetWindows() => this.windows.ToArray();
public IReadOnlyList GetWindows() => this.windows;
/// <summary>
/// Draw all registered windows using ImGui.