mirror of
https://github.com/debauchee/barrier.git
synced 2026-07-01 17:37:38 +08:00
Added file transmission started, failed and complete notification #4745
This commit is contained in:
@@ -37,12 +37,13 @@ DropHelper::writeToDir(const String& destination, DragFileList& fileList, String
|
||||
dropTarget.append(fileList.at(0).getFilename());
|
||||
file.open(dropTarget.c_str(), std::ios::out | std::ios::binary);
|
||||
if (!file.is_open()) {
|
||||
LOG((CLOG_DEBUG "drop file failed: can not open %s", dropTarget.c_str()));
|
||||
LOG((CLOG_ERR "drop file failed: can not open %s", dropTarget.c_str()));
|
||||
}
|
||||
|
||||
file.write(data.c_str(), data.size());
|
||||
file.close();
|
||||
|
||||
|
||||
fileList.clear();
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user