Merge pull request #87 from kendfss/master

fix: instrumenteditor starting expansion state
This commit is contained in:
Veikko Sariola 2022-04-07 14:06:58 +03:00 committed by GitHub
commit e73365b980
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}