Skip to content

Commit

Permalink
Fixed disabling of social cards
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Dec 6, 2024
1 parent 6c796c0 commit a7dc57c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion material/plugins/social/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ def __init__(self):
# 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

Expand Down
3 changes: 2 additions & 1 deletion src/plugins/social/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ def __init__(self):
# 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

Expand Down

0 comments on commit a7dc57c

Please sign in to comment.