Skip to content

Commit fd256c8

Browse files
committed
Hide move actions for Hub vaults
Fixes #406
1 parent b8ba04f commit fd256c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Cryptomator/VaultDetail/VaultDetailViewModel.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,9 @@ class VaultDetailViewModel: VaultDetailViewModelProtocol {
270270
}
271271

272272
private func vaultIsEligibleToMove() -> Bool {
273-
if case CloudProviderType.localFileSystem = vaultInfo.cloudProviderType {
273+
if vaultInfo.vaultConfigType == .hub {
274+
return false
275+
} else if case CloudProviderType.localFileSystem = vaultInfo.cloudProviderType {
274276
return false
275277
}
276278
return vaultInfo.vaultPath != CloudPath("/")

0 commit comments

Comments
 (0)