fix empty grid gen
Some checks failed
Linux arm64 / Build (push) Has been cancelled

This commit is contained in:
2025-02-02 14:24:23 +01:00
parent adeb9b07e5
commit d8289b553a

View File

@@ -84,13 +84,13 @@ public class SudokuSelector {
this.doku = doku;
ImGui.openPopup("genProgress");
this.genThread = new Thread(() -> {
if (!empty) {
try {
try {
if (!empty) {
SudokuFactory.fillDoku(doku, Difficulty.values()[difficulty.get()]);
this.onSelect.emit(this.doku);
} catch (Exception e) {
e.printStackTrace();
}
this.onSelect.emit(this.doku);
} catch (Exception e) {
e.printStackTrace();
}
});
this.genThread.start();