diff --git a/material/plugins/social/plugin.py b/material/plugins/social/plugin.py index 3ca2a9798..c59b2b431 100644 --- a/material/plugins/social/plugin.py +++ b/material/plugins/social/plugin.py @@ -82,7 +82,8 @@ class SocialPlugin(BasePlugin[SocialConfig]): # Retrieve configuration def on_config(self, config): self.color = colors.get("indigo") - self.config.cards = self.config.enabled + if not self.config.enabled: + self.config.cards = False if not self.config.cards: return diff --git a/src/plugins/social/plugin.py b/src/plugins/social/plugin.py index 3ca2a9798..c59b2b431 100644 --- a/src/plugins/social/plugin.py +++ b/src/plugins/social/plugin.py @@ -82,7 +82,8 @@ class SocialPlugin(BasePlugin[SocialConfig]): # Retrieve configuration def on_config(self, config): self.color = colors.get("indigo") - self.config.cards = self.config.enabled + if not self.config.enabled: + self.config.cards = False if not self.config.cards: return