fix(tracker): stack labels display error whenever the stack is not exactly 0

This commit is contained in:
vsariola 2021-02-17 17:50:33 +02:00
parent 18d466803f
commit 319fc5e853

View File

@ -210,7 +210,7 @@ func (t *Tracker) layoutInstrumentEditor(gtx C) D {
if i > 0 {
prevStackUse = t.StackUse[i-1]
}
if u.StackNeed() > prevStackUse || (i == len(t.StackUse)-1 && t.StackUse[i] > 0) {
if u.StackNeed() > prevStackUse || (i == len(t.StackUse)-1 && t.StackUse[i] != 0) {
unitNameLabel.Color = errorColor
}
}