From d8a0e36ce38ecf74051f2ea2c3e8bcab9b429c16 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Fri, 23 Jun 2023 11:53:07 +0200 Subject: [PATCH] Fixed regression in config deprecation in social plugin --- material/plugins/social/plugin.py | 4 ++-- src/plugins/social/plugin.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/material/plugins/social/plugin.py b/material/plugins/social/plugin.py index c2ad516a0..565ab00a2 100644 --- a/material/plugins/social/plugin.py +++ b/material/plugins/social/plugin.py @@ -87,7 +87,7 @@ class SocialPlugin(BasePlugin[SocialPluginConfig]): return # Move color options - if "cards_color" in self.config: + if self.config.cards_color: # Move background color to new option value = self.config.cards_color.get("fill") @@ -100,7 +100,7 @@ class SocialPlugin(BasePlugin[SocialPluginConfig]): self.config.cards_layout_options["color"] = value # Move font family to new option - if "cards_font" in self.config: + if self.config.cards_font: value = self.config.cards_font self.config.cards_layout_options["font_family"] = value diff --git a/src/plugins/social/plugin.py b/src/plugins/social/plugin.py index c2ad516a0..565ab00a2 100644 --- a/src/plugins/social/plugin.py +++ b/src/plugins/social/plugin.py @@ -87,7 +87,7 @@ class SocialPlugin(BasePlugin[SocialPluginConfig]): return # Move color options - if "cards_color" in self.config: + if self.config.cards_color: # Move background color to new option value = self.config.cards_color.get("fill") @@ -100,7 +100,7 @@ class SocialPlugin(BasePlugin[SocialPluginConfig]): self.config.cards_layout_options["color"] = value # Move font family to new option - if "cards_font" in self.config: + if self.config.cards_font: value = self.config.cards_font self.config.cards_layout_options["font_family"] = value