Skip to content

Commit

Permalink
All conditions must be true to use virtual files in the selected loca…
Browse files Browse the repository at this point in the history
…tion.

Signed-off-by: Camila Ayres <hello@camilasan.com>
  • Loading branch information
camilasan authored and mgallien committed Dec 12, 2024
1 parent 7581f29 commit d3d7963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/folderwizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ void FolderWizardSelectiveSync::initializePage()
bool FolderWizardSelectiveSync::validatePage()
{
const auto mode = bestAvailableVfsMode();
const bool useVirtualFiles = (mode == Vfs::WindowsCfApi) || (_virtualFilesCheckBox && _virtualFilesCheckBox->isChecked());
const bool useVirtualFiles = (mode == Vfs::WindowsCfApi) && (_virtualFilesCheckBox && _virtualFilesCheckBox->isChecked());
if (useVirtualFiles) {
const auto availability = Vfs::checkAvailability(wizard()->field(QStringLiteral("sourceFolder")).toString(), mode);
if (!availability) {
Expand Down

0 comments on commit d3d7963

Please sign in to comment.