From 45be7100bbf0c6643312f6fab75d1feadfa0f196 Mon Sep 17 00:00:00 2001 From: Hans Kelson Date: Fri, 12 Jul 2024 17:06:29 -0400 Subject: [PATCH] Don't attempt to switch display theme if the slide has no theme set --- OpenShow/slides/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenShow/slides/models.py b/OpenShow/slides/models.py index c0239c4..60ea3cf 100644 --- a/OpenShow/slides/models.py +++ b/OpenShow/slides/models.py @@ -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}')