mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-06 12:47:13 +02:00
MenuModule.reload(), updated @systemMethod:reloadMenu(), and notes
This commit is contained in:
parent
1f396e198e
commit
118cb97487
2 changed files with 8 additions and 4 deletions
|
@ -187,6 +187,12 @@ exports.MenuModule = class MenuModule extends PluginModule {
|
|||
return this.client.menuStack.goto(name, options, cb);
|
||||
}
|
||||
|
||||
reload(cb) {
|
||||
const prevMenu = this.client.menuStack.pop();
|
||||
prevMenu.instance.leave();
|
||||
return this.client.menuStack.goto(prevMenu.name, cb);
|
||||
}
|
||||
|
||||
addViewController(name, vc) {
|
||||
assert(!this.viewControllers[name], `ViewController by the name of "${name}" already exists!`);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue