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 backportbot[bot] committed Dec 12, 2024
1 parent 5212aa8 commit 90a7d7d
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 90a7d7d

Please sign in to comment.