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