Grid menu used widget:UnitFromFactory() to reduce the units queued number by 1. This wouldn't happen when the factory was on repeat, even if the unit was queued with alt. This is changed to widget:UnitCmdDone() so that the widget can see the command options to see if a unit was queued with alt, to reduce the factory count by 1.
Test steps
Have a factory on repeat, queue a unit with alt, wait until it finishes.
In this version, the queue number goes down by 1.
In the old version, the queue number stayed the same until the factory is reselected.
Work done
Grid menu used
widget:UnitFromFactory()
to reduce the units queued number by 1. This wouldn't happen when the factory was on repeat, even if the unit was queued with alt. This is changed towidget:UnitCmdDone()
so that the widget can see the command options to see if a unit was queued with alt, to reduce the factory count by 1.Test steps