The entry points management technically falls under GUI as well

This commit is contained in:
buzz-lightsnack-2007 2024-04-27 09:16:31 +08:00
parent 45e4a54b53
commit 6265695a5c
5 changed files with 1 additions and 1 deletions

View file

@ -1,27 +0,0 @@
import Menu from '/scripts/GUI/menus.js';
import texts from "/scripts/mapping/read.js";
import ManagedSidebar from "./sidebar.js";
export default class MenuEntry {
/* Create all entries. */
constructor() {
// Add the context menu.
this.menu = new Menu({title: (new texts(`entry_contextMenu`)).localized, contexts: [`all`], event: {"onClicked": MenuEntry.onclick}, hidden: true});
};
/*
Enable the sidebar.
*/
enable () {
this.menu.show();
}
/* Disable. */
disable () {
this.menu.remove();
}
static onclick() {
new ManagedSidebar();
};
}