This commit is contained in:
CortexCore
2024-08-05 09:53:22 +08:00
parent d33e1c1713
commit cc3d6f0ef1
7 changed files with 52 additions and 13 deletions

View File

@@ -70,6 +70,11 @@ namespace BITKit.UX
/// 历史面板
/// </summary>
internal static readonly Stack<IUXPanel> History = new();
/// <summary>
/// 清空历史面板,通常用于关闭返回上一步
/// </summary>
public static void ClearHistory() => History.Clear();
public static void Register(IUXPanel panel) => RegistryQueue.Enqueue(panel);