PalacePal/Pal.Client/WindowSystemExtensions.cs
Liza Carvelli aae717955d Initial Commit
Change release db path

cx
2022-10-23 05:48:57 +02:00

15 lines
358 B
C#

using Dalamud.Interface.Windowing;
using System.Linq;
namespace Pal.Client
{
internal static class WindowSystemExtensions
{
public static T GetWindow<T>(this WindowSystem windowSystem)
where T : Window
{
return windowSystem.Windows.Select(w => w as T).FirstOrDefault(w => w != null);
}
}
}