File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ def on_config(self, config):
87
87
return
88
88
89
89
# Move color options
90
- if "cards_color" in self .config :
90
+ if self .config . cards_color :
91
91
92
92
# Move background color to new option
93
93
value = self .config .cards_color .get ("fill" )
@@ -100,7 +100,7 @@ def on_config(self, config):
100
100
self .config .cards_layout_options ["color" ] = value
101
101
102
102
# Move font family to new option
103
- if "cards_font" in self .config :
103
+ if self .config . cards_font :
104
104
value = self .config .cards_font
105
105
self .config .cards_layout_options ["font_family" ] = value
106
106
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ def on_config(self, config):
87
87
return
88
88
89
89
# Move color options
90
- if "cards_color" in self .config :
90
+ if self .config . cards_color :
91
91
92
92
# Move background color to new option
93
93
value = self .config .cards_color .get ("fill" )
@@ -100,7 +100,7 @@ def on_config(self, config):
100
100
self .config .cards_layout_options ["color" ] = value
101
101
102
102
# Move font family to new option
103
- if "cards_font" in self .config :
103
+ if self .config . cards_font :
104
104
value = self .config .cards_font
105
105
self .config .cards_layout_options ["font_family" ] = value
106
106
You can’t perform that action at this time.
0 commit comments