Also make snapshots when removing options

So we don't have situations where we can't undo a
selection that occurred from removing the second last
option.
This commit is contained in:
Christian Basler
2025-03-14 16:26:24 +01:00
parent a3611cb9a7
commit 3eeeca34fc

View File

@@ -141,6 +141,7 @@ fun PuzzleGrid(
.weight(1f),
options = options,
onOptionRemoved = {
grid.snapshot()
item.options.remove(it)
row.cleanupOptions()
},