feat: allow user to be wrong
Some checks failed
Linux arm64 / Build (push) Has been cancelled

This commit is contained in:
2025-02-01 21:12:13 +01:00
parent 5da915932d
commit d09bf6e9ce

View File

@@ -84,8 +84,8 @@ public class SudokuRenderer {
}
} else {
if (ImGui.button(Options.Symboles.getSymbols().get(i), cellSize)) {
if (currentCell.trySetValue(i))
this.onCellChange.emit(currentCell);
currentCell.setSymbolIndex(i);
this.onCellChange.emit(currentCell);
if (this.doku.getDoku().isSolved())
this.onResolve.emit();
ImGui.closeCurrentPopup();