mirror of https://github.com/mpv-player/mpv
pause-when-minimize.lua: fix unused variable warning
This commit is contained in:
parent
b927857d03
commit
885cc30596
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
local did_minimize = false
|
local did_minimize = false
|
||||||
|
|
||||||
mp.observe_property("window-minimized", "bool", function(name, value)
|
mp.observe_property("window-minimized", "bool", function(_, value)
|
||||||
local pause = mp.get_property_native("pause")
|
local pause = mp.get_property_native("pause")
|
||||||
if value == true then
|
if value == true then
|
||||||
if pause == false then
|
if pause == false then
|
||||||
|
|
Loading…
Reference in New Issue