KeepassLib version 2.38

Added a new settings page to allow auto-save or not
App now resumes correctly from suspend
Settings service now allows getting default values
Removed french special characters from metadata
Code cleanup
This commit is contained in:
BONNEVILLE Geoffroy
2018-03-09 18:06:06 +01:00
parent 49637fcc3b
commit e7d731bb04
34 changed files with 203 additions and 42 deletions

View File

@@ -9,7 +9,7 @@ namespace ModernKeePass.Services
{
private readonly IPropertySet _values = ApplicationData.Current.LocalSettings.Values;
public T GetSetting<T>(string property)
public T GetSetting<T>(string property, T defaultValue = default(T))
{
try
{
@@ -17,7 +17,7 @@ namespace ModernKeePass.Services
}
catch (InvalidCastException)
{
return default(T);
return defaultValue;
}
}