Skip to content

Commit

Permalink
Hide move actions for Hub vaults
Browse files Browse the repository at this point in the history
Fixes #406
  • Loading branch information
tobihagemann committed Feb 11, 2025
1 parent b8ba04f commit fd256c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Cryptomator/VaultDetail/VaultDetailViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,9 @@ class VaultDetailViewModel: VaultDetailViewModelProtocol {
}

private func vaultIsEligibleToMove() -> Bool {
if case CloudProviderType.localFileSystem = vaultInfo.cloudProviderType {
if vaultInfo.vaultConfigType == .hub {
return false
} else if case CloudProviderType.localFileSystem = vaultInfo.cloudProviderType {
return false
}
return vaultInfo.vaultPath != CloudPath("/")
Expand Down

0 comments on commit fd256c8

Please sign in to comment.