Skip to content
Snippets Groups Projects
Unverified Commit ce1e873a authored by Morris Jobke's avatar Morris Jobke
Browse files

Only load viewer in settings if the viewer app is enabled


Signed-off-by: default avatarMorris Jobke <hey@morrisjobke.de>
parent 3eb748fc
No related branches found
No related tags found
Loading
...@@ -77,6 +77,9 @@ class ServerDevNotice implements ISettings { ...@@ -77,6 +77,9 @@ class ServerDevNotice implements ISettings {
$hasInitialState = false; $hasInitialState = false;
// viewer is default enabled and this makes a zero-cost assertion for Psalm
assert(class_exists(LoadViewer::class));
// If the Reasons to use Nextcloud.pdf file is here, let's init Viewer // If the Reasons to use Nextcloud.pdf file is here, let's init Viewer
if ($userFolder->nodeExists('Reasons to use Nextcloud.pdf')) { if ($userFolder->nodeExists('Reasons to use Nextcloud.pdf')) {
$this->eventDispatcher->dispatch(LoadViewer::class, new LoadViewer()); $this->eventDispatcher->dispatch(LoadViewer::class, new LoadViewer());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment