From d91a8abf85e96ce8f8f0add70ade15b365a7a0a7 Mon Sep 17 00:00:00 2001 From: Jeremy Valentine <38669521+valentine195@users.noreply.github.com> Date: Fri, 4 Oct 2024 17:12:18 -0400 Subject: [PATCH] fix: Fix for bug where menu bar is not interactible if Dice Roller is enabled with no in-view dice rolls --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index f65c6d5..b1ae95f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -41,7 +41,7 @@ export default class DiceRollerPlugin extends Plugin { await this.loadSettings(); DiceRenderer.setData(this.getRendererData()); - this.addChild(DiceRenderer); + this.api.initialize(this.data, this.app); window["DiceRoller"] = this.api;