From cbf9fbc8e22cb3946c59292bdf7296dfa3f9d7ee Mon Sep 17 00:00:00 2001 From: LadyDefile <67084868+LadyDefile@users.noreply.github.com> Date: Mon, 7 Mar 2022 16:06:13 -0600 Subject: [PATCH] # WindowSystem.cs * Changed GetWindows() return type from Window[] to IReadOnlyList --- Dalamud/Interface/Windowing/WindowSystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dalamud/Interface/Windowing/WindowSystem.cs b/Dalamud/Interface/Windowing/WindowSystem.cs index 21c94d2d4..6a9f06589 100644 --- a/Dalamud/Interface/Windowing/WindowSystem.cs +++ b/Dalamud/Interface/Windowing/WindowSystem.cs @@ -92,10 +92,10 @@ namespace Dalamud.Interface.Windowing public Window? GetWindow(string windowName) => this.windows.FirstOrDefault(w => w.WindowName == windowName); /// - /// Returns an array of all currently registered windows. + /// Returns a read only list of all currently registered windows. /// /// Returns window collection as a array. - public Window[] GetWindows() => this.windows.ToArray(); + public IReadOnlyList GetWindows() => this.windows; /// /// Draw all registered windows using ImGui.