fix: only start drawing ui after tools have been added

This commit is contained in:
Anna 2021-06-17 14:08:58 -04:00
parent 2cad97e592
commit f3039a6cef
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,6 @@ namespace RoleplayersToolbox {
this.Config = this.Interface.GetPluginConfig() as Configuration ?? new Configuration();
this.Common = new XivCommonBase(pluginInterface, Hooks.ContextMenu | Hooks.PartyFinderListings);
this.Ui = new PluginUi(this);
this.Tools.Add(new HousingTool(this));
this.Tools.Add(new TargetingTool(this));
@ -42,6 +40,8 @@ namespace RoleplayersToolbox {
this.Tools.Add(new EmoteSnapTool(this));
#endif
this.Ui = new PluginUi(this);
this.Commands = new Commands(this);
if (this.GameData == null) {