From 1c8dc0a2b5a5bb861e0907d2c5b8b4ebda54199b Mon Sep 17 00:00:00 2001 From: LadyDefile <67084868+LadyDefile@users.noreply.github.com> Date: Mon, 7 Mar 2022 16:16:18 -0600 Subject: [PATCH] Changes: # Dalamud.Interface.Windowing.WindowSystem * Turned GetWindows() function into Windows property. --- Dalamud/Interface/Windowing/WindowSystem.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Dalamud/Interface/Windowing/WindowSystem.cs b/Dalamud/Interface/Windowing/WindowSystem.cs index f9f894b47..61575f9db 100644 --- a/Dalamud/Interface/Windowing/WindowSystem.cs +++ b/Dalamud/Interface/Windowing/WindowSystem.cs @@ -16,6 +16,7 @@ namespace Dalamud.Interface.Windowing private static DateTimeOffset lastAnyFocus; private readonly List windows = new(); + public IReadOnlyList Windows => this.windows; private string lastFocusedWindowName = string.Empty; @@ -91,12 +92,6 @@ namespace Dalamud.Interface.Windowing /// The object with matching name or null. public Window? GetWindow(string windowName) => this.windows.FirstOrDefault(w => w.WindowName == windowName); - /// - /// Returns a read only list of all currently registered windows. - /// - /// Returns a of the registered windows. - public IReadOnlyList GetWindows() => this.windows; - /// /// Draw all registered windows using ImGui. ///