This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user