From a7ffdcd3dd5612e594094f36647a98589ff94ead Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 19 Oct 2022 23:25:29 +0200 Subject: [PATCH] remove dashboard check, as fallback did not consider it either Signed-off-by: Arthur Schiwon --- apps/theming/lib/Jobs/MigrateBackgroundImages.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/apps/theming/lib/Jobs/MigrateBackgroundImages.php b/apps/theming/lib/Jobs/MigrateBackgroundImages.php index 802b15da6c7..2a6ca776ad5 100644 --- a/apps/theming/lib/Jobs/MigrateBackgroundImages.php +++ b/apps/theming/lib/Jobs/MigrateBackgroundImages.php @@ -27,7 +27,6 @@ declare(strict_types=1); namespace OCA\Theming\Jobs; use OCA\Theming\AppInfo\Application; -use OCP\App\IAppManager; use OCP\AppFramework\Utility\ITimeFactory; use OCP\BackgroundJob\IJobList; use OCP\BackgroundJob\QueuedJob; @@ -45,7 +44,6 @@ class MigrateBackgroundImages extends QueuedJob { protected const STAGE_EXECUTE = 'execute'; private IConfig $config; - private IAppManager $appManager; private IAppDataFactory $appDataFactory; private IJobList $jobList; private IDBConnection $dbc; @@ -54,13 +52,11 @@ class MigrateBackgroundImages extends QueuedJob { ITimeFactory $time, IAppDataFactory $appDataFactory, IConfig $config, - IAppManager $appManager, IJobList $jobList, IDBConnection $dbc ) { parent::__construct($time); $this->config = $config; - $this->appManager = $appManager; $this->appDataFactory = $appDataFactory; $this->jobList = $jobList; $this->dbc = $dbc; @@ -115,11 +111,6 @@ class MigrateBackgroundImages extends QueuedJob { $userIds = $notSoFastMode ? array_slice($allUserIds, 0, 5000) : $allUserIds; foreach ($userIds as $userId) { try { - // precondition - if (!$this->appManager->isEnabledForUser('dashboard', $userId)) { - continue; - } - // migration $file = $dashboardData->getFolder($userId)->getFile('background.jpg'); $targetDir = $this->getUserFolder($userId); -- 2.39.5