We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7361949 commit dbc92e0Copy full SHA for dbc92e0
src/dialog.jl
@@ -64,9 +64,13 @@ function openfiledialog(path)
64
cls()
65
if current > 0
66
args = split(songs[current][2])
67
- file = joinpath(path, lowercase(args[end]))
68
- opts = args[1:end-1]
69
- song = (file, opts)
+ if length(args) > 0
+ file = joinpath(path, lowercase(args[end]))
+ opts = args[1:end-1]
70
+ song = (file, opts)
71
+ else
72
+ song = ("", "")
73
+ end
74
else
75
song = (nothing, nothing)
76
end
src/tui.jl
@@ -128,7 +128,9 @@ function main()
128
if file == nothing
129
break
130
131
- mplay(file, device, opts)
+ if length(file) > 0
132
+ mplay(file, device, opts)
133
134
135
136
mplay(path, device)
0 commit comments