[longomatch] Only load the background when loading the new project



commit c30fed356a5cf4c3d90c549b493a67eede45ac37
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Aug 7 17:27:52 2013 +0200

    Only load the background when loading the new project

 LongoMatch.GUI/Gui/MainWindow.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/MainWindow.cs b/LongoMatch.GUI/Gui/MainWindow.cs
index ad27594..82d239c 100644
--- a/LongoMatch.GUI/Gui/MainWindow.cs
+++ b/LongoMatch.GUI/Gui/MainWindow.cs
@@ -167,9 +167,6 @@ namespace LongoMatch.Gui
                public void UpdateSelectedPlay (Play play) {
                        selectedTimeNode = play;
                        timeline.SelectedTimeNode = play;
-                       postagger.LoadBackgrounds (openedProject.Categories.FieldBackground,
-                                                  openedProject.Categories.HalfFieldBackground,
-                                                  openedProject.Categories.GoalBackground);
                        postagger.LoadPlay (play, false);
                        SetTagsBoxVisibility (true);
                        notes.Play= play;
@@ -414,6 +411,9 @@ namespace LongoMatch.Gui
                        playsSelection.SetProject(project, isLive, filter);
                        buttonswidget.Categories = project.Categories;
                        MakeActionsSensitive(true,projectType);
+                       postagger.LoadBackgrounds (openedProject.Categories.FieldBackground,
+                                                  openedProject.Categories.HalfFieldBackground,
+                                                  openedProject.Categories.GoalBackground);
                        ShowWidgets();
                }
                


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