mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-01 17:24:59 +00:00
style<Welcome>: fix wrong icon displayed for group folder in repositories manager
This commit is contained in:
parent
c1a4ecee46
commit
232c209079
3 changed files with 10 additions and 37 deletions
|
@ -39,14 +39,6 @@ namespace SourceGit.Views.Controls {
|
|||
set { SetValue(IsNewPageProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty HideOnZeroProperty =
|
||||
DependencyProperty.Register("HideOnZero", typeof(bool), typeof(Bookmark), new PropertyMetadata(false, UpdateBookmark));
|
||||
|
||||
public bool HideOnZero {
|
||||
get { return (bool)GetValue(HideOnZeroProperty); }
|
||||
set { SetValue(HideOnZeroProperty, value); }
|
||||
}
|
||||
|
||||
public Bookmark() {
|
||||
icon = new Path();
|
||||
Child = icon;
|
||||
|
@ -57,11 +49,6 @@ namespace SourceGit.Views.Controls {
|
|||
var mark = d as Bookmark;
|
||||
if (mark == null) return;
|
||||
|
||||
if (mark.HideOnZero && mark.Color == 0) {
|
||||
mark.Visibility = Visibility.Collapsed;
|
||||
return;
|
||||
}
|
||||
|
||||
if (!mark.IsNewPage) {
|
||||
if (mark.Color == 0) {
|
||||
mark.icon.SetResourceReference(Path.FillProperty, "Brush.FG1");
|
||||
|
@ -74,8 +61,6 @@ namespace SourceGit.Views.Controls {
|
|||
mark.icon.SetResourceReference(Path.FillProperty, "Brush.FG1");
|
||||
mark.icon.Data = mark.FindResource("Icon.WelcomePage") as Geometry;
|
||||
}
|
||||
|
||||
mark.Visibility = Visibility.Visible;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue