()
| 337 | } |
| 338 | |
| 339 | func (fn *Node) setFileIcon() { |
| 340 | ic, hasic := fn.Info.FindIcon() |
| 341 | if !hasic { |
| 342 | ic = icons.Blank |
| 343 | } |
| 344 | fn.IconLeaf = ic |
| 345 | if br := fn.Branch; br != nil { |
| 346 | if br.IconIndeterminate != ic { |
| 347 | br.SetIconOn(icons.FolderOpen).SetIconOff(icons.Folder).SetIconIndeterminate(ic) |
| 348 | br.UpdateTree() |
| 349 | } |
| 350 | } |
| 351 | } |
| 352 | |
| 353 | // initFileInfo initializes file info |
| 354 | func (fn *Node) initFileInfo() error { |
no test coverage detected