[longomatch] Update camera config in events when the updates it
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Update camera config in events when the updates it
- Date: Fri, 17 Apr 2015 16:19:33 +0000 (UTC)
commit decf52548ce5d97a1cff8a8188c043dbb86b3940
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Thu Apr 2 16:39:20 2015 +0200
Update camera config in events when the updates it
Right it was working because the view modifies the list, but
in case it would create a new one we need to make sure that changes
are applied correctly
LongoMatch.Services/Services/PlayerController.cs | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Services/Services/PlayerController.cs
b/LongoMatch.Services/Services/PlayerController.cs
index 236947c..cd5ea3c 100644
--- a/LongoMatch.Services/Services/PlayerController.cs
+++ b/LongoMatch.Services/Services/PlayerController.cs
@@ -110,6 +110,11 @@ namespace LongoMatch.Services
set {
Log.Debug ("Updating cameras configuration: ", string.Join ("-", value));
camerasVisible = value;
+ if (loadedEvent != null) {
+ loadedEvent.CamerasVisible = value.ToList ();
+ } else if (loadedPlaylistElement is PlaylistPlayElement) {
+ (loadedPlaylistElement as PlaylistPlayElement).CamerasVisible =
value.ToList ();
+ }
if (multiPlayer != null) {
multiPlayer.CamerasVisible = camerasVisible;
if (!skipApplyCamerasConfig && Opened) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]