fix: unloading a file to idle was causing stale current directory path

closes #502
This commit is contained in:
tomasklaen
2023-04-10 22:07:58 +02:00
parent 6d58ef4c99
commit e1b663f930

View File

@@ -653,6 +653,7 @@ mp.register_event('file-loaded', function()
Elements:flash({'top_bar'})
end)
mp.register_event('end-file', function(event)
set_state('path', nil)
if event.reason == 'eof' then
file_end_timer:kill()
handle_file_end()