mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 20:28:57 +03:00
vfs: Allow folders without vfs
This commit is contained in:
parent
e39d751b59
commit
e0ae6012b1
1 changed files with 19 additions and 17 deletions
|
@ -139,24 +139,26 @@ Folder::Folder(const FolderDefinition &definition,
|
|||
}
|
||||
}
|
||||
}
|
||||
if (!_vfs) {
|
||||
// ### error handling; possibly earlier than in the ctor
|
||||
qFatal("Could not load any vfs plugin.");
|
||||
if (_definition.virtualFilesMode != Vfs::Off) {
|
||||
if (!_vfs) {
|
||||
// ### error handling; possibly earlier than in the ctor
|
||||
qFatal("Could not load any vfs plugin.");
|
||||
}
|
||||
|
||||
VfsSetupParams vfsParams;
|
||||
vfsParams.filesystemPath = path();
|
||||
vfsParams.remotePath = remotePath();
|
||||
vfsParams.account = _accountState->account();
|
||||
vfsParams.journal = &_journal;
|
||||
vfsParams.providerName = Theme::instance()->appNameGUI();
|
||||
vfsParams.providerVersion = Theme::instance()->version();
|
||||
|
||||
connect(_vfs, &OCC::Vfs::beginHydrating, this, &Folder::slotHydrationStarts);
|
||||
connect(_vfs, &OCC::Vfs::doneHydrating, this, &Folder::slotHydrationDone);
|
||||
|
||||
_vfs->registerFolder(vfsParams); // Do this always?
|
||||
_vfs->start(vfsParams);
|
||||
}
|
||||
|
||||
VfsSetupParams vfsParams;
|
||||
vfsParams.filesystemPath = path();
|
||||
vfsParams.remotePath = remotePath();
|
||||
vfsParams.account = _accountState->account();
|
||||
vfsParams.journal = &_journal;
|
||||
vfsParams.providerName = Theme::instance()->appNameGUI();
|
||||
vfsParams.providerVersion = Theme::instance()->version();
|
||||
|
||||
connect(_vfs, &OCC::Vfs::beginHydrating, this, &Folder::slotHydrationStarts);
|
||||
connect(_vfs, &OCC::Vfs::doneHydrating, this, &Folder::slotHydrationDone);
|
||||
|
||||
_vfs->registerFolder(vfsParams); // Do this always?
|
||||
_vfs->start(vfsParams);
|
||||
}
|
||||
|
||||
Folder::~Folder()
|
||||
|
|
Loading…
Reference in a new issue