Permalink
Browse files

Stick to a single layout algorithm

We changed the algorithm midstream and that caused issues.
  • Loading branch information...
Haacked committed Oct 6, 2015
1 parent 575ede7 commit 496fec5c8197c66e385575027a60e67219d25460
View
@@ -7,5 +7,6 @@ namespace SeeGit
/// </summary>
public class App : Application
{
public const string LayoutAlgorithm = "EfficientSugiyama"; // Others include: "CompoundFDP"
}
}
@@ -37,7 +37,7 @@ private void OnToggleSettings(object sender, RoutedEventArgs args)
{
if (!_viewModel.ToggleSettings())
{
foreach (CommitVertex vertex in _viewModel.Graph.Vertices)
foreach (var vertex in _viewModel.Graph.Vertices)
{
vertex.AdornerMessageVisibilityType = Configuration.GetSetting("AdornerCommitMessageVisibility", "ExpandedHidden");
vertex.DescriptionShown = Configuration.GetSetting("DescriptionInExpander", false);
@@ -49,7 +49,7 @@ public RepositoryGraph Graph()
AddBranchReferences();
AddHeadReference();
_graph.LayoutAlgorithmType = "CompoundFDP";
_graph.LayoutAlgorithmType = App.LayoutAlgorithm;
return _graph;
}
@@ -33,7 +33,7 @@ public RepositoryGraph Graph()
graph.AddEdge(new CommitEdge(commits[1], commits[2]));
graph.AddEdge(new CommitEdge(commits[0], commits[1]));
graph.AddEdge(new CommitEdge(commits[3], commits[2]));
graph.LayoutAlgorithmType = "EfficientSugiyama";
graph.LayoutAlgorithmType = App.LayoutAlgorithm;
return graph;
}
}
@@ -65,7 +65,7 @@ public void MonitorRepository(string repositoryWorkingPath)
var graph = _graphBuilder.Graph();
if (graph.VertexCount > 1)
graph.LayoutAlgorithmType = "EfficientSugiyama";
graph.LayoutAlgorithmType = App.LayoutAlgorithm;
Graph = graph;
if (!Directory.Exists(gitPath))

0 comments on commit 496fec5

Please sign in to comment.