fix: load-subtitles menu crashing when there's no file open

closes #132
This commit is contained in:
tomasklaen
2022-08-25 21:08:19 +02:00
parent ee9557cc85
commit 405135ad59

View File

@@ -3723,7 +3723,7 @@ mp.add_key_binding(nil, 'load-subtitles', function()
end end
end end
if not path then if not path then
path = os.getenv('HOME') --[[@as string]] path = mp.command_native({'expand-path', options.default_directory})
end end
open_file_navigation_menu( open_file_navigation_menu(
path, path,