From 7eb473e67edc31dc5ce9befb0748be7171198090 Mon Sep 17 00:00:00 2001 From: kendfss Date: Wed, 23 Mar 2022 21:45:09 +0100 Subject: [PATCH] fix: instrumenteditor starting expansion state --- tracker/gioui/instrumenteditor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracker/gioui/instrumenteditor.go b/tracker/gioui/instrumenteditor.go index 381ddd6..fca6dc2 100644 --- a/tracker/gioui/instrumenteditor.go +++ b/tracker/gioui/instrumenteditor.go @@ -132,7 +132,7 @@ func (ie *InstrumentEditor) Layout(gtx C, t *Tracker) D { func (ie *InstrumentEditor) layoutInstrumentHeader(gtx C, t *Tracker) D { header := func(gtx C) D { collapseIcon := icons.NavigationExpandLess - if ie.commentExpanded { + if !ie.commentExpanded { collapseIcon = icons.NavigationExpandMore }