From a359fe5cf5d93acce61219d1979597e0e57eb182 Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Thu, 2 May 2024 11:57:55 +0800 Subject: [PATCH] removed context menu creation; the tab data collection must automatically occur --- scripts/GUI/entrypoints/manager.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/scripts/GUI/entrypoints/manager.js b/scripts/GUI/entrypoints/manager.js index 7d3bf0b..8279643 100644 --- a/scripts/GUI/entrypoints/manager.js +++ b/scripts/GUI/entrypoints/manager.js @@ -2,8 +2,6 @@ import Tabs from "/scripts/GUI/tabs.js"; import Window from "/scripts/GUI/window.js"; -import MenuEntry from "./menuentry.js"; -import ManagedWindow from "./ManagedWindow.js"; import IconIndicator from "./iconindicator.js"; import check from "/scripts/external/check.js"; import pointer from "/scripts/data/pointer.js"; @@ -12,8 +10,6 @@ export default class EntryManager { constructor () { // Initialize the entries. this.instances = {}; - this.instances.popup = new ManagedWindow(); - this.instances.menu = new MenuEntry(); // Add the action listeners. this.#listen(); @@ -21,13 +17,10 @@ export default class EntryManager { /* Add the action listeners. */ #listen() { + this.onRefresh() Tabs.addActionListener(`onActivated`, (data) => {this.onRefresh()}); Tabs.addActionListener(`onUpdated`, (data) => {this.onRefresh()}); Window.addActionListener(`onFocusChanged`, (data) => {this.onRefresh()}); - - // Add the context menu event. - IconIndicator.set(() => {this.instances.popup.show()}); - this.instances.menu.menu.onclick(() => {this.instances.popup.show()}); } onRefresh() { @@ -49,7 +42,6 @@ export default class EntryManager { Enable the entries. */ enable () { - this.instances.menu.enable(); IconIndicator.enable(); } @@ -57,7 +49,6 @@ export default class EntryManager { Disable the entries and the existing opened side panel. */ disable () { - this.instances.menu.disable(); IconIndicator.disable(); } } \ No newline at end of file