From a7dc57c23935c0420b01b78c13d9058fc057a16f Mon Sep 17 00:00:00 2001 From: squidfunk Date: Fri, 6 Dec 2024 21:13:18 +0100 Subject: [PATCH] Fixed disabling of social cards --- material/plugins/social/plugin.py | 3 ++- src/plugins/social/plugin.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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