fix: load-subtitles menu crashing when there's no file open
closes #132
This commit is contained in:
2
uosc.lua
2
uosc.lua
@@ -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,
|
||||||
|
Reference in New Issue
Block a user