mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-02 05:43:40 +01:00
Load services asynchronously whenever possible (#893)
This commit is contained in:
parent
fba8c7163c
commit
8e7f370ddd
66 changed files with 959 additions and 899 deletions
|
|
@ -24,6 +24,7 @@ namespace Dalamud.Game.Gui.ContextMenus
|
|||
/// </summary>
|
||||
[PluginInterface]
|
||||
[InterfaceVersion("1.0")]
|
||||
[ServiceManager.BlockingEarlyLoadedService]
|
||||
public sealed class ContextMenu : IDisposable
|
||||
{
|
||||
private const int MaxContextMenuItemsPerContextMenu = 32;
|
||||
|
|
@ -47,13 +48,11 @@ namespace Dalamud.Game.Gui.ContextMenus
|
|||
private OpenSubContextMenuItem? selectedOpenSubContextMenuItem;
|
||||
private ContextMenuOpenedArgs? currentContextMenuOpenedArgs;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ContextMenu"/> class.
|
||||
/// </summary>
|
||||
public ContextMenu()
|
||||
[ServiceManager.ServiceConstructor]
|
||||
private ContextMenu(SigScanner sigScanner)
|
||||
{
|
||||
this.Address = new ContextMenuAddressResolver();
|
||||
this.Address.Setup();
|
||||
this.Address.Setup(sigScanner);
|
||||
|
||||
unsafe
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue