Skip to content

Commit

Permalink
ProgressBar: do full redraw on needsUpdate.
Browse files Browse the repository at this point in the history
Fixes redrawing with progress-bar-width on configuration reload when
paused.
  • Loading branch information
torque committed Oct 28, 2017
1 parent 5516493 commit 4969688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ProgressBar.moon
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ProgressBar extends BarBase
redraw: =>
super!
position = mp.get_property_number 'percent-pos', 0
if position != @lastPosition
if position != @lastPosition or @needsUpdate
@line[6] = position
if @barWidth > 0
followingEdge = Window.w*position*1e-2 - @barWidth
Expand Down

0 comments on commit 4969688

Please sign in to comment.