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:
@@ -141,6 +141,7 @@ fun PuzzleGrid(
|
|||||||
.weight(1f),
|
.weight(1f),
|
||||||
options = options,
|
options = options,
|
||||||
onOptionRemoved = {
|
onOptionRemoved = {
|
||||||
|
grid.snapshot()
|
||||||
item.options.remove(it)
|
item.options.remove(it)
|
||||||
row.cleanupOptions()
|
row.cleanupOptions()
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user