Deactivate the projector message overlay by default
This commit is contained in:
parent
8d961f4940
commit
25df1b8693
@ -135,7 +135,7 @@ def projector_message_set(message, sid=None):
|
|||||||
try:
|
try:
|
||||||
overlay = ProjectorOverlay.objects.get(def_name='Message')
|
overlay = ProjectorOverlay.objects.get(def_name='Message')
|
||||||
except ProjectorOverlay.DoesNotExist:
|
except ProjectorOverlay.DoesNotExist:
|
||||||
overlay = ProjectorOverlay(def_name='Message', active=True)
|
overlay = ProjectorOverlay(def_name='Message', active=False)
|
||||||
overlay.sid=sid
|
overlay.sid=sid
|
||||||
overlay.save()
|
overlay.save()
|
||||||
|
|
||||||
|
@ -52,9 +52,8 @@ class ControlView(TemplateView, AjaxMixin):
|
|||||||
projector_overlay = ProjectorOverlay.objects.get(
|
projector_overlay = ProjectorOverlay.objects.get(
|
||||||
def_name=name)
|
def_name=name)
|
||||||
except ProjectorOverlay.DoesNotExist:
|
except ProjectorOverlay.DoesNotExist:
|
||||||
active = name == 'Message'
|
|
||||||
projector_overlay = ProjectorOverlay(def_name=name,
|
projector_overlay = ProjectorOverlay(def_name=name,
|
||||||
active=active)
|
active=False)
|
||||||
projector_overlay.save()
|
projector_overlay.save()
|
||||||
overlays.append(projector_overlay)
|
overlays.append(projector_overlay)
|
||||||
return overlays
|
return overlays
|
||||||
|
Loading…
Reference in New Issue
Block a user