fix edit of immutable cells
All checks were successful
Linux arm64 / Build (push) Successful in 43s

This commit is contained in:
2025-01-29 11:24:43 +01:00
parent 532b2d152b
commit 5ad8fa30f4

View File

@@ -96,7 +96,7 @@ public class SudokuRenderer {
String cellText = "";
if (symbol != -1)
cellText += Integer.toString(symbol + 1);
if (ImGui.button(cellText + "##" + index, cellSize)) {
if (ImGui.button(cellText + "##" + index, cellSize) && cell.isMutable()) {
ImGui.openPopup("editPopup");
currentCell = cell;
}