Permalink
Browse files

[VersionControl] Fix solution pad overlay icons

Set solution pad overlay icons only if the status
of the node has been changed. Otherwise keep
the original overlay.
  • Loading branch information...
sevoku committed May 30, 2016
1 parent 8be64d4 commit e5e9798a9952601ca128fa223c724e8511904b13
@@ -95,7 +95,9 @@ public override void BuildNode (ITreeBuilder builder, object dataObject, NodeInf
VersionInfo vi = repo.GetVersionInfo (file);
nodeInfo.OverlayBottomRight = VersionControlService.LoadOverlayIconForStatus (vi.Status);
var overlay = VersionControlService.LoadOverlayIconForStatus (vi.Status);
if (overlay != null)
nodeInfo.OverlayBottomRight = overlay;
}
/* public override void PrepareChildNodes (object dataObject)
@@ -128,7 +130,8 @@ static void AddFolderOverlay (Repository rep, string folder, NodeInfo nodeInfo,
} else {
overlay = VersionControlService.LoadOverlayIconForStatus (vinfo.Status);
}
nodeInfo.OverlayBottomRight = overlay;
if (overlay != null)
nodeInfo.OverlayBottomRight = overlay;
}
void Monitor (object sender, FileUpdateEventArgs args)

0 comments on commit e5e9798

Please sign in to comment.