summaryrefslogtreecommitdiff
path: root/sysdata_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-04 18:00:22 -0400
committerPietro Gagliardi <[email protected]>2014-04-04 18:00:22 -0400
commitfbde220ab1fad59059161ca6443fa10585dcb7c9 (patch)
tree4851248b4ac87a370e48eba03f3d779c9c8e268e /sysdata_darwin.go
parent1b05312da9f940a89c19dd33bfc4eaafa481fcd7 (diff)
Added a TODO related to the previous commit.
Diffstat (limited to 'sysdata_darwin.go')
-rw-r--r--sysdata_darwin.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdata_darwin.go b/sysdata_darwin.go
index 40c9480..be5e72c 100644
--- a/sysdata_darwin.go
+++ b/sysdata_darwin.go
@@ -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 {