[longomatch] Only create one system dashboard and don't duplicate in TemplatesNames
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Only create one system dashboard and don't duplicate in TemplatesNames
- Date: Fri, 24 Apr 2015 11:05:13 +0000 (UTC)
commit 763db35f68818820e0e8c6a0c4430e117a40500d
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Fri Apr 24 13:04:26 2015 +0200
Only create one system dashboard and don't duplicate in TemplatesNames
LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs | 4 +-
LongoMatch.Plugins/LongoMatch.Plugins.csproj | 1 -
LongoMatch.Plugins/Makefile.am | 3 +-
LongoMatch.Plugins/SystemDashboards.cs | 51 --------------------------
LongoMatch.Services/TemplatesService.cs | 7 +---
5 files changed, 4 insertions(+), 62 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs b/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
index 5e9a06c..3eafae1 100644
--- a/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
+++ b/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
@@ -74,7 +74,7 @@ namespace LongoMatch.Gui.Panel
LoadIcons ();
GroupLabels ();
ConnectSignals ();
- FillCategories ();
+ FillDahsboards ();
FillFormats ();
LoadTeams (project);
if (project == null) {
@@ -249,7 +249,7 @@ namespace LongoMatch.Gui.Panel
mediafilesetselection1.FileSet = project.Description.FileSet;
}
- void FillCategories ()
+ void FillDahsboards ()
{
int i = 0;
int index = 0;
diff --git a/LongoMatch.Plugins/LongoMatch.Plugins.csproj b/LongoMatch.Plugins/LongoMatch.Plugins.csproj
index e5e6499..297ad3c 100644
--- a/LongoMatch.Plugins/LongoMatch.Plugins.csproj
+++ b/LongoMatch.Plugins/LongoMatch.Plugins.csproj
@@ -28,7 +28,6 @@
<ItemGroup>
<Compile Include="Assembly.cs" />
<Compile Include="CSVExporter.cs" />
- <Compile Include="SystemDashboards.cs" />
<Compile Include="..\AssemblyInfo\AssemblyInfo.cs">
<Link>AssemblyInfo.cs</Link>
</Compile>
diff --git a/LongoMatch.Plugins/Makefile.am b/LongoMatch.Plugins/Makefile.am
index 2e85bf4..9d5f8c0 100644
--- a/LongoMatch.Plugins/Makefile.am
+++ b/LongoMatch.Plugins/Makefile.am
@@ -6,8 +6,7 @@ LINK = $(REF_DEP_LONGOMATCH_PLUGINS)
SOURCES = ../AssemblyInfo/AssemblyInfo.cs \
Assembly.cs \
- CSVExporter.cs \
- SystemDashboards.cs
+ CSVExporter.cs
RESOURCES =
diff --git a/LongoMatch.Services/TemplatesService.cs b/LongoMatch.Services/TemplatesService.cs
index 893ec48..0e7c2b7 100644
--- a/LongoMatch.Services/TemplatesService.cs
+++ b/LongoMatch.Services/TemplatesService.cs
@@ -138,12 +138,7 @@ namespace LongoMatch.Services
public List<string> TemplatesNames {
// FIXME we really need to avoid this. Too many roundtrips
get {
- List<string> l = new List<string> ();
- List<T> templates = Templates;
- foreach (T template in templates) {
- l.Add (template.Name);
- }
- return l.Concat (systemTemplates.Select (t => t.Name)).ToList ();
+ return Templates.Select (t => t.Name).ToList ();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]