increase number of displayed recent fiels, fixes #179

This commit is contained in:
Philipp Crocoll
2018-01-05 05:37:24 +01:00
parent a632dd172e
commit 138ed85f93

View File

@@ -36,7 +36,7 @@ namespace keepass2android
private const String FileTable = "files"; private const String FileTable = "files";
private const int DatabaseVersion = 1; private const int DatabaseVersion = 1;
private const int MaxFiles = 5; private const int MaxFiles = 15;
public const String KeyFileId = "_id"; public const String KeyFileId = "_id";
public const String KeyFileFilename = "fileName"; public const String KeyFileFilename = "fileName";
@@ -142,7 +142,7 @@ namespace keepass2android
result = mDb.Insert(FileTable, null, vals); result = mDb.Insert(FileTable, null, vals);
} }
// Delete all but the last five records // Delete all but the last X records
try { try {
DeleteAllBut(MaxFiles); DeleteAllBut(MaxFiles);
} catch (Exception ex) { } catch (Exception ex) {