mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-22 16:39:27 +01:00
Add Draw after setting up everything else to prevent exception.
This commit is contained in:
parent
99eb08958c
commit
885dcbdf04
1 changed files with 1 additions and 1 deletions
|
|
@ -136,6 +136,7 @@ public class Penumbra : IDalamudPlugin
|
||||||
{
|
{
|
||||||
PluginLog.Information( $"Penumbra Version {Version}, Commit #{CommitHash} successfully Loaded." );
|
PluginLog.Information( $"Penumbra Version {Version}, Commit #{CommitHash} successfully Loaded." );
|
||||||
}
|
}
|
||||||
|
Dalamud.PluginInterface.UiBuilder.Draw += _windowSystem.Draw;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SetupInterface( out ConfigWindow cfg, out LaunchButton btn, out WindowSystem system )
|
private void SetupInterface( out ConfigWindow cfg, out LaunchButton btn, out WindowSystem system )
|
||||||
|
|
@ -145,7 +146,6 @@ public class Penumbra : IDalamudPlugin
|
||||||
system = new WindowSystem( Name );
|
system = new WindowSystem( Name );
|
||||||
system.AddWindow( _configWindow );
|
system.AddWindow( _configWindow );
|
||||||
system.AddWindow( cfg.ModEditPopup );
|
system.AddWindow( cfg.ModEditPopup );
|
||||||
Dalamud.PluginInterface.UiBuilder.Draw += system.Draw;
|
|
||||||
Dalamud.PluginInterface.UiBuilder.OpenConfigUi += cfg.Toggle;
|
Dalamud.PluginInterface.UiBuilder.OpenConfigUi += cfg.Toggle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue