Merge pull request #8515 from nextcloud/bugfix/8508/wizard-macvfs

fix(wizard): show VFS option during account setup when using a mac-VFS build
This commit is contained in:
Jyrki Gadinger 2025-08-04 12:12:04 +02:00 committed by GitHub
commit 67201feefd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -149,11 +149,14 @@ void OwncloudAdvancedSetupPage::initializePage()
{
WizardCommon::initErrorLabel(_ui.errorLabel);
if (Theme::instance()->disableVirtualFilesSyncFolder() || !Theme::instance()->showVirtualFilesOption()
#ifndef BUILD_FILE_PROVIDER_MODULE
|| bestAvailableVfsMode() == Vfs::Off
if (Theme::instance()->disableVirtualFilesSyncFolder()
|| !(Theme::instance()->showVirtualFilesOption()
#ifdef BUILD_FILE_PROVIDER_MODULE
|| Mac::FileProvider::fileProviderAvailable()
#else
&& bestAvailableVfsMode() != Vfs::Off
#endif
) {
)) {
// If the layout were wrapped in a widget, the auto-grouping of the
// radio buttons no longer works and there are surprising margins.
// Just manually hide the button and remove the layout.