diff --git a/ImGui/IPersistableWindowConfig.cs b/ImGui/IPersistableWindowConfig.cs index 9e19cc6..0ed099a 100644 --- a/ImGui/IPersistableWindowConfig.cs +++ b/ImGui/IPersistableWindowConfig.cs @@ -6,3 +6,11 @@ public interface IPersistableWindowConfig void SaveWindowConfig(); } + +public interface IPersistableWindowConfig : IPersistableWindowConfig + where T : WindowConfig +{ + new T? WindowConfig { get; } + + WindowConfig? IPersistableWindowConfig.WindowConfig => WindowConfig; +} diff --git a/ImGui/WindowConfig.cs b/ImGui/WindowConfig.cs index 63e6a62..97e32cd 100644 --- a/ImGui/WindowConfig.cs +++ b/ImGui/WindowConfig.cs @@ -1,6 +1,6 @@ namespace LLib.ImGui; -public sealed class WindowConfig +public class WindowConfig { public bool IsPinned { get; set; } public bool IsClickthrough { get; set; }