Currently the variable "carrierNumber" (which corresponds to the queue number shown in the treeview widget) is updated right at the start of the "on_submit" function:
If the submitted data (e.g. PPN, volume number) failed validation or the user re-entered the title, the function is invoked again, and as a result the displayed queue numbers are not consecutive. This doesn't affect any of the processing, but users may find this confusing.
To avoid this, update "carrierNumber" after the job file has been written, i.e. here:
Currently the variable "carrierNumber" (which corresponds to the queue number shown in the treeview widget) is updated right at the start of the "on_submit" function:
https://github.com/KBNLresearch/iromlab/blob/master/iromlab/iromlab.pyw#L298
If the submitted data (e.g. PPN, volume number) failed validation or the user re-entered the title, the function is invoked again, and as a result the displayed queue numbers are not consecutive. This doesn't affect any of the processing, but users may find this confusing.
To avoid this, update "carrierNumber" after the job file has been written, i.e. here:
https://github.com/KBNLresearch/iromlab/blob/06ee35c68cf66c8bf711c010a2a8801e4f3d398c/iromlab/iromlab.pyw#L389