mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-19 00:41:49 +03:00
Added fake drag file list #4584
This commit is contained in:
parent
4508e10186
commit
d9684d44d2
@ -84,7 +84,7 @@ ClientProxy1_5::fileChunkReceived()
|
||||
m_events->addEvent(Event(m_events->forIScreen().fileRecieveCompleted(), server));
|
||||
}
|
||||
else if (result == kStart) {
|
||||
String filename = server->getDragFileList().at(0).getFilename();
|
||||
String filename = server->getFakeDragFileList().at(0).getFilename();
|
||||
LOG((CLOG_NOTIFY "File Transmission Started: Start receiving %s.", filename.c_str()));
|
||||
}
|
||||
}
|
||||
|
@ -2070,7 +2070,7 @@ Server::writeToDropDirThread(void*)
|
||||
ARCH->sleep(.1f);
|
||||
}
|
||||
|
||||
DropHelper::writeToDir(m_screen->getDropTarget(), m_dragFileList,
|
||||
DropHelper::writeToDir(m_screen->getDropTarget(), m_fakeDragFileList,
|
||||
m_receivedFileData);
|
||||
}
|
||||
|
||||
@ -2387,7 +2387,7 @@ Server::dragInfoReceived(UInt32 fileNum, String content)
|
||||
return;
|
||||
}
|
||||
|
||||
DragInformation::parseDragInfo(m_dragFileList, fileNum, content);
|
||||
DragInformation::parseDragInfo(m_fakeDragFileList, fileNum, content);
|
||||
|
||||
m_screen->startDraggingFiles(m_dragFileList);
|
||||
m_screen->startDraggingFiles(m_fakeDragFileList);
|
||||
}
|
||||
|
@ -175,8 +175,8 @@ public:
|
||||
//! Return received file data
|
||||
String& getReceivedFileData() { return m_receivedFileData; }
|
||||
|
||||
//! Return drag file list
|
||||
DragFileList getDragFileList() { return m_dragFileList; }
|
||||
//! Return fake drag file list
|
||||
DragFileList getFakeDragFileList() { return m_fakeDragFileList; }
|
||||
|
||||
//@}
|
||||
|
||||
@ -470,6 +470,7 @@ private:
|
||||
size_t m_expectedFileSize;
|
||||
String m_receivedFileData;
|
||||
DragFileList m_dragFileList;
|
||||
DragFileList m_fakeDragFileList;
|
||||
Thread* m_sendFileThread;
|
||||
Thread* m_writeToDropDirThread;
|
||||
String m_dragFileExt;
|
||||
|
Loading…
Reference in New Issue
Block a user