Skip to content

Commit

Permalink
Don't attempt to switch display theme if the slide has no theme set
Browse files Browse the repository at this point in the history
  • Loading branch information
sheepman4267 committed Jul 12, 2024
1 parent 8f78e0a commit 45be710
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OpenShow/slides/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,8 @@ def send_to_display(self, displays:Iterable, show:None or Show = None) -> None:
display.current_deck = self.deck
else:
display.current_deck = None
if display.current_theme != slide_theme:
if display.current_theme != slide_theme and slide_theme is not None:
# TODO: Add a UI warning to make it more obvious when a show has no theme set
display.current_theme = slide_theme
display.save()
send_event('test', f'display-{display.pk}-theme', f'sending theme {slide_theme.pk} to display {display.pk}')
Expand Down

0 comments on commit 45be710

Please sign in to comment.