aboutsummaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'main.lua')
-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)