feat: flash top bar when new file is loaded

closes #380
This commit is contained in:
tomasklaen
2023-01-18 12:15:14 +01:00
parent 8183163f2a
commit 32cc283397

View File

@@ -563,6 +563,7 @@ mp.observe_property('mouse-pos', 'native', update_mouse_pos)
mp.observe_property('osc', 'bool', function(name, value) if value == true then mp.set_property('osc', 'no') end end)
mp.register_event('file-loaded', function()
set_state('path', normalize_path(mp.get_property_native('path')))
Elements:flash({'top_bar'})
end)
mp.register_event('end-file', function(event)
if event.reason == 'eof' then