refactor: use mpv's new platform prop to detect platform

closes #462
This commit is contained in:
tomasklaen
2023-03-29 10:41:12 +02:00
parent 00daff7ca2
commit 08734f1dda
3 changed files with 23 additions and 18 deletions

View File

@@ -180,7 +180,7 @@ function open_file_navigation_menu(directory_path, handle_select, opts)
local items = {}
if is_root then
if state.os == 'windows' then
if state.platform == 'windows' then
items[#items + 1] = {title = '..', hint = 'Drives', value = '{drives}', separator = true}
end
else