From 8cd17a32150e4bb6cff9f3752372bf0eb04c0efd Mon Sep 17 00:00:00 2001 From: lostthing <95527107+lostthing@users.noreply.github.com> Date: Wed, 22 Dec 2021 03:19:40 +0800 Subject: [PATCH] fix pauseplay button icon update 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: https://github.com/mpv-player/mpv/issues/8155#issuecomment-707726802 --- mordenx.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mordenx.lua b/mordenx.lua index 58602bc..409336e 100644 --- a/mordenx.lua +++ b/mordenx.lua @@ -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