mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 14:44:40 +02:00
Add prevMenuOnTimeout() method
This commit is contained in:
parent
39b35e8d11
commit
c5998aa343
1 changed files with 6 additions and 0 deletions
|
@ -193,6 +193,12 @@ exports.MenuModule = class MenuModule extends PluginModule {
|
|||
return this.client.menuStack.goto(prevMenu.name, cb);
|
||||
}
|
||||
|
||||
prevMenuOnTimeout(timeout, cb) {
|
||||
setTimeout( () => {
|
||||
return this.prevMenu(cb);
|
||||
}, timeout);
|
||||
}
|
||||
|
||||
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