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 <[email protected]>
  • Loading branch information
camilasan committed Dec 12, 2024
1 parent 6f901a6 commit 3b48e3a
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 3b48e3a

Please sign in to comment.