(filter string)
| 73 | } |
| 74 | |
| 75 | func (c *Controller) onFilterEdit(filter string) error { |
| 76 | var filterRegex *regexp.Regexp |
| 77 | var err error |
| 78 | |
| 79 | if len(filter) > 0 { |
| 80 | filterRegex, err = regexp.Compile(filter) |
| 81 | if err != nil { |
| 82 | return err |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | c.views.Tree.SetFilterRegex(filterRegex) |
| 87 | |
| 88 | err = c.views.Tree.Update() |
| 89 | if err != nil { |
| 90 | return err |
| 91 | } |
| 92 | |
| 93 | return c.views.Tree.Render() |
| 94 | } |
| 95 | |
| 96 | func (c *Controller) onLayerChange(selection viewmodel.LayerSelection) error { |
| 97 | // update the details |
nothing calls this directly
no test coverage detected