Skip to content

Commit 45ad021

Browse files
committed
Display notice for already enabled apps
Signed-off-by: Sander Ruitenbeek <s.ruitenbeek@getgoing.nl>
1 parent a0a02cf commit 45ad021

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/Command/App/Enable.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ private function enableApp(string $appId, array $groupIds, bool $forceEnable, Ou
105105
return $group->getDisplayName();
106106
}, $groupIds);
107107

108+
if ($this->appManager->isInstalled($appId) && $groupIds === []) {
109+
$output->writeln($appId . ' already enabled');
110+
return;
111+
}
108112

109113
try {
110114
/** @var Installer $installer */

0 commit comments

Comments
 (0)