fix minor bug when resizing (resizing caused graph to be drawn and resized, even when graph was toggled off)

This commit is contained in:
2024-08-14 03:54:52 +01:00
parent a3290337a0
commit abddddbc9e
2 changed files with 5 additions and 1 deletions

BIN
dotscape

Binary file not shown.

View File

@@ -69,7 +69,11 @@ struct
let
val model = AppWith.windowResize (model, width, height)
val triangles = Triangles.toVector model
val graphLines = GraphLines.generate model
val graphLines =
if #showGraph model then GraphLines.generate model
else Vector.fromList []
val drawMsg =
RESIZE_TRIANGLES_BUTTONS_AND_GRAPH
{triangles = triangles, graphLines = graphLines}