Merge pull request #6635 from nextcloud/bugfix/crash-mac-vfs-toggle

Fix crash when in debug mode when toggling enabled status of an account's virtual files (macOS)
This commit is contained in:
Claudio Cambra 2024-04-17 04:44:27 +08:00 committed by GitHub
commit fe6f47e3b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -122,7 +122,7 @@ public:
NSArray<NSString *> *const modifiedVfsAccounts = mutableVfsAccounts.copy;
[_userDefaults setObject:modifiedVfsAccounts forKey:_accountsKey];
Q_ASSERT(vfsEnabledForAccount(userIdAtHost) == userIdAtHost);
Q_ASSERT(vfsEnabledForAccount(userIdAtHost) == setEnabled);
return VfsAccountsAction::VfsAccountsEnabledChanged;
}