[longomatch] Fix notification of cameras config in events unload



commit a1efc15d825ca0cb1cd852824324e8974f905c1d
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Apr 22 13:28:52 2015 +0200

    Fix notification of cameras config in events unload
    
    Make sure to change the camera config before notifying
    the event unload so the view can change it correctly

 LongoMatch.Services/PlayerController.cs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Services/PlayerController.cs b/LongoMatch.Services/PlayerController.cs
index c891163..9d3f442 100644
--- a/LongoMatch.Services/PlayerController.cs
+++ b/LongoMatch.Services/PlayerController.cs
@@ -492,12 +492,13 @@ namespace LongoMatch.Services
                {
                        Log.Debug ("Unload current event");
                        Reset ();
-                       EmitEventUnloaded ();
                        if (FileSet != defaultFileSet) {
                                UpdateCamerasConfig (defaultCamerasVisible, defaultCamerasLayout);
+                               EmitEventUnloaded ();
                                Open (defaultFileSet);
                        } else {
                                CamerasVisible = defaultCamerasVisible;
+                               EmitEventUnloaded ();
                        }
                }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]