mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
feat: change version
This commit is contained in:
@@ -107,6 +107,12 @@ QList<FileData> UpdateController::calculateHash(QString path,QString ignoreName)
|
||||
return *hashes;
|
||||
}
|
||||
|
||||
void UpdateController::checkCanUpdate()
|
||||
{
|
||||
QByteArray checkUpdate = dataParser->xmlAnswer_notify("CANCHANGE");
|
||||
sendSystem->sendXMLAnswer(checkUpdate);
|
||||
}
|
||||
|
||||
void UpdateController::updateFilesOnServer(QList<FileData> *fileSendList){
|
||||
|
||||
QListIterator<FileData> serverIterator(*fileSendList);
|
||||
@@ -122,7 +128,7 @@ void UpdateController::updateFilesOnServer(QList<FileData> *fileSendList){
|
||||
}
|
||||
else
|
||||
{
|
||||
QString fullPath = Tools::createReceiveFullPath(data.path,versionContainer->getLocalVersionData());
|
||||
QString fullPath = Tools::createReceiveFullPath(data.path,versionContainer->getServerVersionData());
|
||||
sendSystem->sendFileBlockWithVersion(fullPath,data.path);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user