chore: clean up warnings

This commit is contained in:
goaaats 2022-04-03 04:13:36 +02:00
parent 0c9fd95478
commit febaaba998
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B

View file

@ -16,7 +16,6 @@ namespace Dalamud.Interface.Windowing
private static DateTimeOffset lastAnyFocus;
private readonly List<Window> windows = new();
public IReadOnlyList<Window> Windows => this.windows;
private string lastFocusedWindowName = string.Empty;
@ -45,6 +44,11 @@ namespace Dalamud.Interface.Windowing
/// </summary>
public static TimeSpan TimeSinceLastAnyFocus => DateTimeOffset.Now - lastAnyFocus;
/// <summary>
/// Gets a read-only list of all <see cref="Window"/>s in this <see cref="WindowSystem"/>.
/// </summary>
public IReadOnlyList<Window> Windows => this.windows;
/// <summary>
/// Gets a value indicating whether any window in this <see cref="WindowSystem"/> has focus and is
/// not marked to be excluded from consideration.
@ -88,7 +92,7 @@ namespace Dalamud.Interface.Windowing
/// <summary>
/// Get a window by name.
/// </summary>
/// <param name="windowName">The name of the <see cref="Window"/></param>
/// <param name="windowName">The name of the <see cref="Window"/>.</param>
/// <returns>The <see cref="Window"/> object with matching name or null.</returns>
public Window? GetWindow(string windowName) => this.windows.FirstOrDefault(w => w.WindowName == windowName);