aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2023-10-01 12:28:23 +0530
committersinanmohd <sinan@sinanmohd.com>2023-10-01 12:28:23 +0530
commit861453ac25d3a5476dd8dc0e1bbe48874d8567af (patch)
treeb33a08a1f77b84660d17d1fe5e08e312d8971945
parentc8f520d56ded2e67a0c199d6b7e35f256bfae08e (diff)
mpv: clean up
-rw-r--r--main.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/main.lua b/main.lua
index 69ab7c8..5b84e9e 100644
--- a/main.lua
+++ b/main.lua
@@ -67,11 +67,9 @@ local sub_setup = function ()
end
local file_listener = function ()
- if not sub_needed() then
- return
+ if sub_needed() then
+ sub_setup()
end
-
- sub_setup()
end
mp.register_event('file-loaded', file_listener)