cpenv / tk-cpenv

Shotgun Toolkit Application that adds support for cpenv modules.
Other
20 stars 5 forks source link

Fix for OverflowError int larger than maximum 32-bit integer #31

Open RicardoMusch opened 3 months ago

RicardoMusch commented 3 months ago

This patch fixes an overfow error in the QProgressBar which crashes the tk-cpenv activation flow if the size of the package, in bytes/int, is larger than then the maximum value for a 32 bit integer. Not super elegant, but it works.

This happens when you use CPENV for managing software packages that can easily get larger than 2GB.

It's worth noting that the field that holds the size value in bytes on Flow has to be converted to a Text field as directed by the API error that is returned when publishing your package.

Fixes #29