Move alert() to a Thread.invokeLater, as it is not in the main thread
This commit is contained in:
parent
82345b92bb
commit
2e68593b30
@ -100,7 +100,7 @@ function TTSDeckPage(busy_props, page_num, page_cards, copies_list) {
|
|||||||
|
|
||||||
deck_graphics.drawImage(card_image, col * card_image.width, row * card_image.height, null);
|
deck_graphics.drawImage(card_image, col * card_image.width, row * card_image.height, null);
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
alert('Error while processing ' + card + ': ' + ex, true);
|
Thread.invokeLater(() => alert('Error while processing ' + card + ': ' + ex, true));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
println("End of Row ", row);
|
println("End of Row ", row);
|
||||||
|
Loading…
Reference in New Issue
Block a user