Skip to content

Commit

Permalink
Remove 2.5 to 2.6 migration code that did not initialize the vfs plugin
Browse files Browse the repository at this point in the history
Fixes: #11348
  • Loading branch information
TheOneRing committed Nov 9, 2023
1 parent f1fbb76 commit 803897e
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/gui/folder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,20 +164,6 @@ Folder::Folder(const FolderDefinition &definition,

// Potentially upgrade suffix vfs to windows vfs
OC_ENFORCE(_vfs);
if (_definition.virtualFilesMode == Vfs::WithSuffix
&& _definition.upgradeVfsMode) {
if (VfsPluginManager::instance().isVfsPluginAvailable(Vfs::WindowsCfApi)) {
if (auto winvfs = VfsPluginManager::instance().createVfsFromPlugin(Vfs::WindowsCfApi)) {
// Wipe the existing suffix files from fs and journal
_vfs->wipeDehydratedVirtualFiles();

// Then switch to winvfs mode
_vfs.reset(winvfs.release());
_definition.virtualFilesMode = Vfs::WindowsCfApi;
}
}
saveToSettings();
}
// Initialize the vfs plugin
startVfs();
}
Expand Down

0 comments on commit 803897e

Please sign in to comment.