Disable long-press action on directory (#502)

This commit is contained in:
Danny Mösch 2021-09-03 01:02:19 +02:00 committed by GitHub
parent dab850f311
commit 64117d91cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -210,6 +210,9 @@ class PasswordNavigationViewController: UIViewController {
return return
} }
let passwordTableEntry = dataSource.getPasswordTableEntry(at: indexPath) let passwordTableEntry = dataSource.getPasswordTableEntry(at: indexPath)
if passwordTableEntry.isDir {
return
}
passwordManager.providePasswordPasteboard(with: passwordTableEntry.passwordEntity.getPath()) passwordManager.providePasswordPasteboard(with: passwordTableEntry.passwordEntity.getPath())
} }
} }