Closed CRImier closed 5 years ago
Currently, if there's a LoadingIndicator of some sort in background and we need to print stuff on the screen, we need to do:
LoadingIndicator
li.pause() Printer("stuff", i, o) li.resume()
Would be great to have it work like this:
with li.paused(): Printer("stuff", i, o)
Would help cleaning up and failproofing code in apps that have loading-bar-pause-heavy functions, like the "WiFi repair" and "Avrdude" apps.
Done - thanks to @psbleep !
Currently, if there's a
LoadingIndicator
of some sort in background and we need to print stuff on the screen, we need to do:Would be great to have it work like this:
Would help cleaning up and failproofing code in apps that have loading-bar-pause-heavy functions, like the "WiFi repair" and "Avrdude" apps.