aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ui
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-05-13 16:24:05 -0400
committerDrew DeVault <sir@cmpwn.com>2019-05-13 16:53:02 -0400
commitbb46b2b7e15ba839475973ae44d5a833c6f2b265 (patch)
treef4f5036a314e965e4dc1261119e1478b4935d677 /lib/ui
parent17bd2dc4dbb3b43b1917c942100834c1341f2194 (diff)
downloadaerc-bb46b2b7e15ba839475973ae44d5a833c6f2b265.tar.gz
Spec out review message screen
Diffstat (limited to 'lib/ui')
-rw-r--r--lib/ui/grid.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ui/grid.go b/lib/ui/grid.go
index f36a16ac..5011a818 100644
--- a/lib/ui/grid.go
+++ b/lib/ui/grid.go
@@ -181,10 +181,10 @@ func (grid *Grid) AddChild(content Drawable) *GridCell {
return cell
}
-func (grid *Grid) RemoveChild(cell *GridCell) {
+func (grid *Grid) RemoveChild(content Drawable) {
grid.mutex.Lock()
- for i, _cell := range grid.cells {
- if _cell == cell {
+ for i, cell := range grid.cells {
+ if cell.Content == content {
grid.cells = append(grid.cells[:i], grid.cells[i+1:]...)
break
}