From 10eb3691b782189774d2a38f9f9ed6fc19c9aed1 Mon Sep 17 00:00:00 2001 From: Aleksey Ivanovsky Date: Sat, 20 Jul 2024 23:09:24 +0200 Subject: [PATCH] Fix templates checkbox behavior in New Database screen --- .../data/repository/keepass/KeepassDatabaseRepository.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/ivanovsky/passnotes/data/repository/keepass/KeepassDatabaseRepository.kt b/app/src/main/kotlin/com/ivanovsky/passnotes/data/repository/keepass/KeepassDatabaseRepository.kt index 8b05a07d..d13a8a6b 100644 --- a/app/src/main/kotlin/com/ivanovsky/passnotes/data/repository/keepass/KeepassDatabaseRepository.kt +++ b/app/src/main/kotlin/com/ivanovsky/passnotes/data/repository/keepass/KeepassDatabaseRepository.kt @@ -166,7 +166,7 @@ class KeepassDatabaseRepository( type: KeepassImplementation, key: EncryptedDatabaseKey, file: FileDescriptor, - addTemplates: Boolean + isAddTemplates: Boolean ): OperationResult { return lock.withLock { val dbResult = KotpassDatabase.new( @@ -174,7 +174,7 @@ class KeepassDatabaseRepository( fsOptions = defaultOptions(), file = file, key = key, - isAddTemplates = true + isAddTemplates = isAddTemplates ) if (dbResult.isFailed) { return@withLock dbResult.takeError()