MCPcopy Create free account
hub / github.com/bumptop/BumpTop / isValidDropTarget

Method isValidDropTarget

trunk/win/Source/BT_FileSystemActor.cpp:928–940  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

926}
927
928bool FileSystemActor::isValidDropTarget()
929{
930 // Conditional List
931 if (isFileSystemType(DeadLink)) return false;
932 if (!isFileSystemType(Folder) && !isFileSystemType(Executable) && !isFileSystemType(Link)) return false;
933
934 int iconType = winOS->GetIconTypeFromFileName(getFullPath());
935 if (isFileSystemType(Virtual) && (iconType != RecycleBin && iconType != MyDocuments)) return false;
936 if (isFileSystemType(Link) && (isFileSystemType(Executable) || isFileSystemType(Folder))) return true;
937 if (isFileSystemType(Removable) && !isMounted()) return false;
938
939 return true;
940}
941
942bool FileSystemActor::isSourceValid()
943{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected