tobiasvl / love-imgui-filedialog

A simple filepicker for LOVE's imgui module
https://gitlab.com/DanielPower/imgui-filedialog
MIT License
2 stars 2 forks source link

Fix attribute error #3

Open tobiasvl opened 2 years ago

tobiasvl commented 2 years ago
Error

love-imgui-filedialog/filedialog.lua:225: attempt to index field 'attributes' (a nil value)

Traceback

love-imgui-filedialog/filedialog.lua:225: in function '_fileClicked'
love-imgui-filedialog/filedialog.lua:133: in function '_drawListView'
love-imgui-filedialog/filedialog.lua:58: in function 'draw'
ui.lua:609: in function 'draw'
main.lua:70: in function 'draw'
[C]: in function 'xpcall'
tobiasvl commented 2 years ago

This seems to only happen in the starting directory. love.filesystem.getInfo fails to retrieve info about most of the files there (but not all). It works in other directories. Very strange.

In testing this directory is C:\Users\$USERNAME\AppData\Roaming\LOVE\DRÖM. Note that I tried to rename the app to drop the Ö, thinking it was charset related, but that wasn't it.