Skip to content

Commit

Permalink
fix open action check
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Jan 28, 2024
1 parent 01c3d49 commit eff8ed6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/dialog.lua
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ mp.register_script_message('open', function(action)
append_raw(filters, name, o[type])
end

open_action = action
open_action = action or ''
local filters = {}

if not open_action or open_action == '' then
if open_action == '' or open_action == 'append' then
append(filters, 'Video Files', 'video_exts')
append(filters, 'Audio Files', 'audio_exts')
append(filters, 'Image Files', 'image_exts')
Expand Down Expand Up @@ -184,7 +184,7 @@ end)

-- save dialog
mp.register_script_message('save', function(action, arg1)
save_action = action
save_action = action or ''
save_arg1 = arg1
if save_action == 'screenshot' then
if not mp.get_property_number('vid') then
Expand Down

0 comments on commit eff8ed6

Please sign in to comment.