fix: instrumenteditor starting expansion state

This commit is contained in:
kendfss
2022-03-23 21:45:09 +01:00
parent 1a5251dbf6
commit 7eb473e67e

View File

@ -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
}