05nelsonm / kmp-tor

Kotlin Multiplatform Library for embedding Tor into your applications
Apache License 2.0
33 stars 5 forks source link

Notification progress changes when actions execute but are ignored #534

Closed 05nelsonm closed 1 month ago

05nelsonm commented 1 month ago

If tor is already started, the ActionJob will still be dispatched as being executed but will not do anything. There is no change to TorState. Currently, the Notification will update text and progress whenever observing an executable action. Unfortunately, it results in the progress bar changing to indeterminate behavior and not being set back.

Need to track local variable of the last action, and then when the TorState observer progress is that of Indeterminate, Use the last action local variable to set the text. If no state changes, then that action was ignored.