SublimeText / sublime_lib

Utility library for frequently used functionality in Sublime Text and convenience functions or classes
https://sublimetext.github.io/sublime_lib
MIT License
52 stars 4 forks source link

Stop ActivityIndicator when the object reference is lost. #153

Closed Thom1729 closed 3 years ago

Thom1729 commented 3 years ago

Use a weak reference so that sublime.set_timeout won't keep the reference alive. This will naturally stop the timeouts. Also manually clear the target upon deletion.

This is technically a change in behavior, but I think it makes sense as a bug fix.