From 206953e3f469ded2800057b7f8dc41f0b72bc482 Mon Sep 17 00:00:00 2001 From: saertna <83655354+saertna@users.noreply.github.com> Date: Mon, 2 Sep 2024 18:25:23 +0200 Subject: [PATCH] Cleanup unnecessary UI elements --- src/main.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/main.ts b/src/main.ts index cf8af9e..333883f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -170,14 +170,6 @@ export default class gamification extends Plugin { }); - this.addCommand({ - id: 'overview', - name: 'open gamification side overview', - callback: async () => { - this.activateView(); - }, - }); - if (this.mediator.getSettingBoolean('debug')){ this.addRibbonIcon("accessibility", "Crafting", async () => { console.log('Debug Help Funktion accessibility is called') @@ -254,6 +246,11 @@ export default class gamification extends Plugin { this.addRibbonIcon("chevrons-right", "update overview leaf", () => { this.actualizeProfileLeave(); }); + + this.addCommand({ id: 'overview', name: 'open gamification side overview', callback: async () => { + this.activateView(); + }, + }); } if(this.mediator.getSettingNumber('counterMajurityCalcInitial') >= 50){