From 0773b8744ffc759f2df9dbc3afce75bec8801cad Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 6 Feb 2024 22:13:15 +0100 Subject: [PATCH] perf(dashboard): Stop loading the viewer on the dashboard Signed-off-by: Ferdinand Thiessen --- apps/dashboard/lib/Controller/DashboardController.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/apps/dashboard/lib/Controller/DashboardController.php b/apps/dashboard/lib/Controller/DashboardController.php index 625881b001c..a2605e69f4c 100644 --- a/apps/dashboard/lib/Controller/DashboardController.php +++ b/apps/dashboard/lib/Controller/DashboardController.php @@ -30,8 +30,6 @@ declare(strict_types=1); */ namespace OCA\Dashboard\Controller; -use OCA\Files\Event\LoadSidebar; -use OCA\Viewer\Event\LoadViewer; use OCP\AppFramework\Controller; use OCP\AppFramework\Http; use OCP\AppFramework\Http\Attribute\OpenAPI; @@ -91,11 +89,6 @@ class DashboardController extends Controller { \OCP\Util::addStyle('dashboard', 'dashboard'); \OCP\Util::addScript('dashboard', 'main', 'theming'); - $this->eventDispatcher->dispatchTyped(new LoadSidebar()); - if (class_exists(LoadViewer::class)) { - $this->eventDispatcher->dispatchTyped(new LoadViewer()); - } - $this->eventDispatcher->dispatchTyped(new RegisterWidgetEvent($this->dashboardManager)); $systemDefault = $this->config->getAppValue('dashboard', 'layout', 'recommendations,spreed,mail,calendar'); -- 2.39.5