Fix program hanging when calling FileSelector::refresh()

The FileSystemModule is already locked, so if we use LockFS another
time it will try to lock a FileSystemModule::m_mutex for a second
time.
This commit is contained in:
David Capello 2022-05-03 15:14:44 -03:00
parent f41c6bc1c5
commit debd22014c

View File

@ -1030,7 +1030,6 @@ std::string FileSelector::getSelectedExtension() const
void FileSelector::refresh()
{
FileSystemModule *fs = FileSystemModule::instance();
LockFS lock(fs);
fs->refresh();
}