mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Fix review comments.
Signed-off-by: allexzander <blackslayer4@gmail.com>
This commit is contained in:
parent
ef89256d39
commit
d754bb7102
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user