Skip to content

Commit 532b8d1

Browse files
committed
fix: fix "new mount" false positives
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 5331116 commit 532b8d1

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

lib/private/Files/Config/MountProviderCollection.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,4 +238,8 @@ public function clearProviders() {
238238
public function getProviders(): array {
239239
return $this->providers;
240240
}
241+
242+
public function getHomeProviders(): array {
243+
return $this->homeProviders;
244+
}
241245
}

lib/private/Files/SetupManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,9 @@ private function afterUserFullySetup(IUser $user, array $previouslySetupProvider
280280
$mounts = array_filter($mounts, function (IMountPoint $mount) use ($userRoot) {
281281
return str_starts_with($mount->getMountPoint(), $userRoot);
282282
});
283-
$allProviders = array_map(function (IMountProvider $provider) {
283+
$allProviders = array_map(function ($provider) {
284284
return get_class($provider);
285-
}, $this->mountProviderCollection->getProviders());
285+
}, array_merge($this->mountProviderCollection->getProviders(), $this->mountProviderCollection->getHomeProviders()));
286286
$newProviders = array_diff($allProviders, $previouslySetupProviders);
287287
$mounts = array_filter($mounts, function (IMountPoint $mount) use ($previouslySetupProviders) {
288288
return !in_array($mount->getMountProvider(), $previouslySetupProviders);

0 commit comments

Comments
 (0)