From 482395ba2f12b71af115d07f7c99a10613118ac7 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Sat, 20 Jan 2024 01:57:24 +0100 Subject: fix(theming): Also reset background color settings when updating global background image Signed-off-by: Ferdinand Thiessen --- lib/private/Server.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/private/Server.php b/lib/private/Server.php index 21e120840db..f62b2426bba 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -171,6 +171,7 @@ use OCA\Files_External\Service\GlobalStoragesService; use OCA\Files_External\Service\UserGlobalStoragesService; use OCA\Files_External\Service\UserStoragesService; use OCA\Theming\ImageManager; +use OCA\Theming\Service\BackgroundService; use OCA\Theming\ThemingDefaults; use OCA\Theming\Util; use OCP\Accounts\IAccountManager; @@ -1190,7 +1191,8 @@ class Server extends ServerContainer implements IServerContainer { $c->get(IURLGenerator::class), $this->get(ICacheFactory::class), $this->get(LoggerInterface::class), - $this->get(ITempManager::class) + $this->get(ITempManager::class), + $this->get(BackgroundService::class), ); return new ThemingDefaults( $c->get(\OCP\IConfig::class), @@ -1201,7 +1203,8 @@ class Server extends ServerContainer implements IServerContainer { new Util($c->get(\OCP\IConfig::class), $this->get(IAppManager::class), $c->getAppDataDir('theming'), $imageManager), $imageManager, $c->get(IAppManager::class), - $c->get(INavigationManager::class) + $c->get(INavigationManager::class), + $c->get(BackgroundService::class), ); } return new \OC_Defaults(); -- cgit v1.2.3