don't create local backups of local backups

This commit is contained in:
Philipp Crocoll
2018-06-11 07:16:04 +02:00
parent 0d6c9b468e
commit dfed92ac61
2 changed files with 5 additions and 2 deletions

View File

@@ -410,8 +410,10 @@ namespace keepass2android.Io
}
private readonly Dictionary<string, bool> _isLocalBackupCache = new Dictionary<string, bool>();
private bool IsLocalBackup(IOConnectionInfo ioc)
public bool IsLocalBackup(IOConnectionInfo ioc)
{
if (!ioc.IsLocalFile())
return false;
bool result;
if (_isLocalBackupCache.TryGetValue(ioc.Path, out result))
return result;