Deactivate the projector message overlay by default

This commit is contained in:
Norman Jäckel 2012-07-10 01:44:42 +02:00
parent 8d961f4940
commit 25df1b8693
2 changed files with 2 additions and 3 deletions

View File

@ -135,7 +135,7 @@ def projector_message_set(message, sid=None):
try:
overlay = ProjectorOverlay.objects.get(def_name='Message')
except ProjectorOverlay.DoesNotExist:
overlay = ProjectorOverlay(def_name='Message', active=True)
overlay = ProjectorOverlay(def_name='Message', active=False)
overlay.sid=sid
overlay.save()

View File

@ -52,9 +52,8 @@ class ControlView(TemplateView, AjaxMixin):
projector_overlay = ProjectorOverlay.objects.get(
def_name=name)
except ProjectorOverlay.DoesNotExist:
active = name == 'Message'
projector_overlay = ProjectorOverlay(def_name=name,
active=active)
active=False)
projector_overlay.save()
overlays.append(projector_overlay)
return overlays