Skip to content

Commit

Permalink
fix pauseplay button icon update
Browse files Browse the repository at this point in the history
When mouse click or keyboard press trigger play/pause, the button on osc interface don't update in time, this patch will fix it for better ux.

More info: mpv-player/mpv#8155 (comment)
  • Loading branch information
lostthing authored Dec 21, 2021
1 parent b4b1399 commit 8cd17a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mordenx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1530,6 +1530,7 @@ end

function pause_state(name, enabled)
state.paused = enabled
mp.add_timeout(0.1, function() state.osd:update() end)
if user_opts.showonpause then
if enabled then
state.lastvisibility = user_opts.visibility
Expand Down

0 comments on commit 8cd17a3

Please sign in to comment.