emit correct signal if a app get's disabled

This commit is contained in:
Bjoern Schiessle 2016-06-13 13:36:23 +02:00
parent 01f8434a75
commit 5f2bc3a96d
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ class AppManager implements IAppManager {
} }
unset($this->installedAppsCache[$appId]); unset($this->installedAppsCache[$appId]);
$this->appConfig->setValue($appId, 'enabled', 'no'); $this->appConfig->setValue($appId, 'enabled', 'no');
$this->dispatcher->dispatch(ManagerEvent::EVENT_APP_ENABLE, new ManagerEvent( $this->dispatcher->dispatch(ManagerEvent::EVENT_APP_DISABLE, new ManagerEvent(
ManagerEvent::EVENT_APP_DISABLE, $appId ManagerEvent::EVENT_APP_DISABLE, $appId
)); ));
$this->clearAppsCache(); $this->clearAppsCache();