mirror of
https://github.com/euphy/polargraphcontroller
synced 2025-01-09 03:34:25 +01:00
Add try/catch around the previewQueue(). Fixes #19
This commit is contained in:
parent
995db8a8a5
commit
417c18fec7
@ -843,8 +843,17 @@ void drawImagePage()
|
|||||||
|
|
||||||
showGroupBox();
|
showGroupBox();
|
||||||
showCurrentMachinePosition();
|
showCurrentMachinePosition();
|
||||||
if (displayingQueuePreview)
|
|
||||||
previewQueue();
|
try {
|
||||||
|
if (displayingQueuePreview)
|
||||||
|
previewQueue();
|
||||||
|
}
|
||||||
|
catch (ConcurrentModificationException cme)
|
||||||
|
{
|
||||||
|
// not sure why this prompts an exception. Will revisit this another day.
|
||||||
|
println("Caught CME coming from previewQueue(): " + cme.getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
if (displayingInfoTextOnInputPage)
|
if (displayingInfoTextOnInputPage)
|
||||||
showText(250,45);
|
showText(250,45);
|
||||||
drawStatusText((int)statusTextPosition.x, (int)statusTextPosition.y);
|
drawStatusText((int)statusTextPosition.x, (int)statusTextPosition.y);
|
||||||
|
Loading…
Reference in New Issue
Block a user