0.4.3 Added icons. /JL

This commit is contained in:
2022-12-28 23:22:26 +01:00
parent 9e8c73c0dc
commit 972871a9bf
706 changed files with 12292 additions and 5 deletions

View File

@@ -50,16 +50,16 @@ func ShowBeads(mw *MyMainWindow, serie string) {
bead.InfoTooltip.SetText(bead.info, "Approx. "+fmt.Sprint(s.onHand)+" left on hand")
bead.WarningTooltip.SetText(bead.warning, "Only "+fmt.Sprint(s.onHand)+" left on hand")
bead.ErrorTooltip.SetText(bead.error, "Out of stock")
if s.onHand <= 200 {
if s.onHand <= 200 && s.inStock {
bead.warning.SetVisible(true)
bead.info.SetVisible(false)
bead.error.SetVisible(false)
} else {
} else if s.onHand > 200 && s.inStock {
bead.warning.SetVisible(false)
bead.info.SetVisible(true)
bead.error.SetVisible(false)
}
if s.onHand <= 0 {
if s.onHand <= 0 || !s.inStock {
bead.warning.SetVisible(false)
bead.info.SetVisible(false)
bead.error.SetVisible(true)