Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only load viewer in settings if the viewer app is enabled #22650

Merged
merged 1 commit into from
Sep 7, 2020

Conversation

MorrisJobke
Copy link
Member

Found by Psalm:

2 errors fixed
/github/workspace/apps/settings/lib/Settings/Personal/ServerDevNotice.php:83:37:error - UndefinedClass: Class or interface OCA\Viewer\Event\LoadViewer does not exist
/github/workspace/apps/settings/lib/Settings/Personal/ServerDevNotice.php:83:60:error - UndefinedClass: Class or interface OCA\Viewer\Event\LoadViewer does not exist

@MorrisJobke
Copy link
Member Author

Regression from #22136

@kesselb
Copy link
Contributor

kesselb commented Sep 7, 2020

Viewer app is always enabled afaik.

@skjnldsv
Copy link
Member

skjnldsv commented Sep 7, 2020

Viewer app is always enabled afaik.

This 👍
You cannot disable nor remove viewer

@MorrisJobke
Copy link
Member Author

You cannot disable nor remove viewer

Didn't knew that. I thought it is only default enabled. Then we should add it to the external dependencies that are available.

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
@MorrisJobke
Copy link
Member Author

I changed it to a zero-cost check that asserts the obvious, but fails in development environments properly.

@MorrisJobke MorrisJobke merged commit 0e6344f into master Sep 7, 2020
@MorrisJobke MorrisJobke deleted the fix/noid/fix-psalm-warning branch September 7, 2020 18:41
@rullzer rullzer mentioned this pull request Sep 8, 2020
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants