Skip to content

Commit

Permalink
Fixed regression in config deprecation in social plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Jun 23, 2023
1 parent a22f39b commit d8a0e36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions material/plugins/social/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def on_config(self, config):
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")
Expand All @@ -100,7 +100,7 @@ def on_config(self, config):
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

Expand Down
4 changes: 2 additions & 2 deletions src/plugins/social/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def on_config(self, config):
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")
Expand All @@ -100,7 +100,7 @@ def on_config(self, config):
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

Expand Down

0 comments on commit d8a0e36

Please sign in to comment.