Added a TODO related to the previous commit.

This commit is contained in:
Pietro Gagliardi 2014-04-04 18:00:22 -04:00
parent 1b05312da9
commit fbde220ab1
1 changed files with 1 additions and 0 deletions

View File

@ -480,6 +480,7 @@ func (s *sysData) setProgress(percent int) {
uitask <- func() {
if percent == -1 {
// At least on Mac OS X 10.8, if the progressbar was already on 0 or 100% when turning on indeterminate mode, the indeterminate animation won't play, leaving just a still progress bar. This is a workaround. Note the selector call order.
// TODO will the value chosen affect the animation speed?
C.objc_msgSend_double(s.id, _setDoubleValue, C.double(50))
C.objc_msgSend_bool(s.id, _setIndeterminate, C.BOOL(C.YES))
} else {