diff --git a/src/UI/Dashboard.xaml b/src/UI/Dashboard.xaml index 04698039..76524551 100644 --- a/src/UI/Dashboard.xaml +++ b/src/UI/Dashboard.xaml @@ -302,7 +302,7 @@ - + @@ -314,7 +314,7 @@ - + diff --git a/src/UI/Dashboard.xaml.cs b/src/UI/Dashboard.xaml.cs index b4463a70..fdd65ffe 100644 --- a/src/UI/Dashboard.xaml.cs +++ b/src/UI/Dashboard.xaml.cs @@ -12,30 +12,6 @@ using System.Windows.Media; using System.Windows.Threading; namespace SourceGit.UI { - - /// - /// Branch node in tree. - /// - public class BranchNode { - public string Name { get; set; } - public Git.Branch Branch { get; set; } - public bool IsExpanded { get; set; } - public bool IsCurrent => Branch != null ? Branch.IsCurrent : false; - public bool IsFiltered => Branch != null ? Branch.IsFiltered : false; - public string Track => Branch != null ? Branch.UpstreamTrack : ""; - public Visibility FilterVisibility => Branch == null ? Visibility.Collapsed : Visibility.Visible; - public Visibility TrackVisibility => (Branch != null && !Branch.IsSameWithUpstream) ? Visibility.Visible : Visibility.Collapsed; - public List Children { get; set; } - } - - /// - /// Remote node in tree. - /// - public class RemoteNode { - public string Name { get; set; } - public bool IsExpanded { get; set; } - public List Children { get; set; } - } /// /// Dashboard for opened repository. @@ -46,6 +22,30 @@ namespace SourceGit.UI { private List cachedRemotes = new List(); private string abortCommand = null; + /// + /// Branch node in tree. + /// + public class BranchNode { + public string Name { get; set; } + public Git.Branch Branch { get; set; } + public bool IsExpanded { get; set; } + public bool IsCurrent => Branch != null ? Branch.IsCurrent : false; + public bool IsFiltered => Branch != null ? Branch.IsFiltered : false; + public string Track => Branch != null ? Branch.UpstreamTrack : ""; + public Visibility FilterVisibility => Branch == null ? Visibility.Collapsed : Visibility.Visible; + public Visibility TrackVisibility => (Branch != null && !Branch.IsSameWithUpstream) ? Visibility.Visible : Visibility.Collapsed; + public List Children { get; set; } + } + + /// + /// Remote node in tree. + /// + public class RemoteNode { + public string Name { get; set; } + public bool IsExpanded { get; set; } + public List Children { get; set; } + } + /// /// Expand/Collapsed tags ///