mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-31 02:26:29 +03:00
Fix move event not being handled correctly within the FileSystemModel fileIsVisibleFn configuration (dicussed at: https://github.com/SpartanJ/ecode/discussions/776).
This commit is contained in:
@@ -839,6 +839,13 @@ bool FileSystemModel::handleFileEventLocked( const FileEvent& event ) {
|
||||
{ FileSystemEventType::Delete, event.directory, event.oldFilename } );
|
||||
}
|
||||
|
||||
const auto& displayCfg = getDisplayConfig();
|
||||
|
||||
if ( displayCfg.fileIsVisibleFn && !displayCfg.fileIsVisibleFn( file.getFilepath() ) ) {
|
||||
return handleFileEventLocked(
|
||||
{ FileSystemEventType::Delete, event.directory, event.oldFilename } );
|
||||
}
|
||||
|
||||
Node* childNode = parent->mChildren[index.row()];
|
||||
{
|
||||
Lock l( mResourceLock );
|
||||
|
||||
Reference in New Issue
Block a user