aboutsummaryrefslogtreecommitdiffstats
path: root/ui.go
diff options
context:
space:
mode:
authorsam-anthony <samanthony6@protonmail.com>2022-04-10 19:00:01 -0230
committersam-anthony <samanthony6@protonmail.com>2022-04-10 19:00:01 -0230
commit37400eb4b5f5a8ee16ff751c3a629ea836452a49 (patch)
tree12bdd1935f698a9d739d1d0567ff5eeb7521bf6f /ui.go
parent4f654973e5139f14d6fa63357a274ad0e3cbb202 (diff)
downloadvolute-37400eb4b5f5a8ee16ff751c3a629ea836452a49.zip
update compressor image when add/remove point
Diffstat (limited to 'ui.go')
-rw-r--r--ui.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui.go b/ui.go
index 74a3fd5..2631cab 100644
--- a/ui.go
+++ b/ui.go
@@ -241,6 +241,7 @@ func duplicateDeleteRow() *g.TableRowWidget {
engineMassFlowRate[i],
i,
)
+ go updateCompImg()
}),
g.Button("Delete").OnClick(func() {
if numPoints < 2 {
@@ -253,6 +254,7 @@ func duplicateDeleteRow() *g.TableRowWidget {
manifoldPressure = util.Remove(manifoldPressure, i)
pressureRatio = util.Remove(pressureRatio, i)
engineMassFlowRate = util.Remove(engineMassFlowRate, i)
+ go updateCompImg()
}),
))
}