Performance: Don't load tasklist UI elements when not needed
This commit is contained in:
parent
ffdc0454e0
commit
e6a9819c32
1 changed files with 4 additions and 0 deletions
|
@ -44,6 +44,10 @@ class tasklist_ui
|
|||
return;
|
||||
}
|
||||
|
||||
if ($this->rc->action && !in_array($this->rc->action, array('show', 'preview', 'print', 'index'))) {
|
||||
return;
|
||||
}
|
||||
|
||||
// add taskbar button
|
||||
$this->plugin->add_button(array(
|
||||
'command' => 'tasks',
|
||||
|
|
Loading…
Add table
Reference in a new issue