feat: add recall as internal function to overlay dialog.

This commit is contained in:
rabbitism
2024-03-09 18:52:26 +08:00
parent 04305234a1
commit 51d7c3c870
5 changed files with 30 additions and 3 deletions

View File

@@ -211,6 +211,12 @@ public static class OverlayDialog
control.CanLightDismiss = options.CanLightDismiss;
control.CanDragMove = options.CanDragMove;
}
internal static T? Recall<T>(string? hostId) where T: Control
{
var host = OverlayDialogManager.GetHost(hostId);
if (host is null) return null;
var item = host.Recall<T>();
return item;
}
}