mirror of
https://github.com/vsariola/sointu.git
synced 2025-05-28 03:10:24 -04:00
fix(tracker): stack labels display error whenever the stack is not exactly 0
This commit is contained in:
parent
18d466803f
commit
319fc5e853
@ -210,7 +210,7 @@ func (t *Tracker) layoutInstrumentEditor(gtx C) D {
|
|||||||
if i > 0 {
|
if i > 0 {
|
||||||
prevStackUse = t.StackUse[i-1]
|
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
|
unitNameLabel.Color = errorColor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user