mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 21:15:55 +03:00
Fix VFS freeze when syncing '.lnk' files on Windows.
Signed-off-by: allexzander <blackslayer4@gmail.com>
This commit is contained in:
parent
4a7145f1f3
commit
d5b6d93978
1 changed files with 11 additions and 1 deletions
|
@ -501,12 +501,22 @@ void ProcessDirectoryJob::processFileAnalyzeRemoteInfo(
|
|||
});
|
||||
return;
|
||||
}
|
||||
#ifdef Q_OS_WIN
|
||||
const bool forceAlwaysLocal = item->_type == ItemTypeFile && item->_fileId.endsWith(".lnk");
|
||||
#else
|
||||
const bool forceAlwaysLocal = false;
|
||||
#endif
|
||||
if (forceAlwaysLocal) {
|
||||
int a = 5;
|
||||
a = 6;
|
||||
}
|
||||
// Turn new remote files into virtual files if the option is enabled.
|
||||
auto &opts = _discoveryData->_syncOptions;
|
||||
if (!localEntry.isValid()
|
||||
&& item->_type == ItemTypeFile
|
||||
&& opts._vfs->mode() != Vfs::Off
|
||||
&& _pinState != PinState::AlwaysLocal) {
|
||||
&& _pinState != PinState::AlwaysLocal
|
||||
&& !forceAlwaysLocal) {
|
||||
item->_type = ItemTypeVirtualFile;
|
||||
if (isVfsWithSuffix())
|
||||
addVirtualFileSuffix(tmp_path._original);
|
||||
|
|
Loading…
Reference in a new issue