[longomatch] When importing load the dashboard before
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] When importing load the dashboard before
- Date: Mon, 27 Apr 2015 22:23:58 +0000 (UTC)
commit 0540f6f20d3050e31a5f27bb2114fff2b267d5bb
Author: Jorge Zapata <jorgeluis zapata gmail com>
Date: Mon Apr 27 19:58:18 2015 +0200
When importing load the dashboard before
This fixes the issue of not having the correct field's background
image because the imported dashboard is loaded after the default field
background is loaded and thus the field might have a new image from
the new dashboard
LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs b/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
index 65aea0f..8d137ad 100644
--- a/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
+++ b/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
@@ -220,6 +220,16 @@ namespace LongoMatch.Gui.Panel
datepicker1.Date = project.Description.MatchDate;
desctextview.Buffer.Clear ();
desctextview.Buffer.InsertAtCursor (project.Description.Description ?? "");
+
+ // In case the project provides a dashboard, use it, otherwise, enable the combobox
+ if (project.Dashboard != null) {
+ tagscombobox.Visible = false;
+ analysislabel.Visible = false;
+ analysisTemplate = project.Dashboard;
+ } else {
+ project.Dashboard = analysisTemplate;
+ }
+
// In case the project does have a team, do not allow a modification
// otherwise set the loaded template
if (project.LocalTeamTemplate != null) {
@@ -236,14 +246,6 @@ namespace LongoMatch.Gui.Panel
project.VisitorTeamTemplate = awaytemplate;
}
- // FIXME In case the project provides a dashboard, use it, otherwise, enable the
combobox
- if (project.Dashboard != null) {
- tagscombobox.Visible = false;
- analysislabel.Visible = false;
- analysisTemplate = project.Dashboard;
- } else {
- project.Dashboard = analysisTemplate;
- }
mediafilesetselection1.Visible = true;
mediafilesetselection1.FileSet = project.Description.FileSet;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]