removed broken window and menu creation
This commit is contained in:
parent
28efa1d503
commit
1e55c10a45
3 changed files with 0 additions and 153 deletions
|
@ -1,14 +0,0 @@
|
|||
import Window from "/scripts/GUI/window.js";
|
||||
|
||||
export default class ManagedWindow {
|
||||
constructor () {
|
||||
this.instance = new Window("/pages/popup.htm", {"width": 500, "height": 500, "type": "popup", "hidden": true});
|
||||
}
|
||||
|
||||
/*
|
||||
Show the popup.
|
||||
*/
|
||||
show() {
|
||||
this.instance.show();
|
||||
}
|
||||
}
|
|
@ -1,27 +0,0 @@
|
|||
import Menu from '/scripts/GUI/menus.js';
|
||||
import texts from "/scripts/mapping/read.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`], events: {"onClicked": this.onclick}, hidden: true});
|
||||
};
|
||||
|
||||
/*
|
||||
Enable the sidebar.
|
||||
*/
|
||||
enable () {
|
||||
// First disable to prevent ghost entries.
|
||||
this.disable();
|
||||
|
||||
this.menu.show();
|
||||
}
|
||||
|
||||
/*
|
||||
Disable.
|
||||
*/
|
||||
disable () {
|
||||
this.menu.remove();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue