Fix review comments.

Signed-off-by: allexzander <blackslayer4@gmail.com>
This commit is contained in:
allexzander 2021-05-05 20:41:28 +03:00 committed by allexzander (Rebase PR Action)
parent ef89256d39
commit d754bb7102

View File

@ -430,7 +430,7 @@ void PropagateDownloadFile::startAfterIsEncryptedIsChecked()
if (!_item->_remotePerm.isNull() && !_item->_remotePerm.hasPermission(RemotePermissions::CanWrite)) {
// make sure ReadOnly flag is preserved for placeholder, similarly to regular files
FileSystem::setFileReadOnlyWeak(propagator()->fullLocalPath(_item->_file), true);
FileSystem::setFileReadOnly(propagator()->fullLocalPath(_item->_file), true);
}
return;
@ -455,7 +455,7 @@ void PropagateDownloadFile::startAfterIsEncryptedIsChecked()
if (!_item->_remotePerm.isNull() && !_item->_remotePerm.hasPermission(RemotePermissions::CanWrite)) {
// make sure ReadOnly flag is preserved for placeholder, similarly to regular files
FileSystem::setFileReadOnlyWeak(propagator()->fullLocalPath(_item->_file), true);
FileSystem::setFileReadOnly(propagator()->fullLocalPath(_item->_file), true);
}
return;