mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-04 08:00:16 -04:00

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
24 lines
577 B
C#
24 lines
577 B
C#
using ModernKeePass.Interfaces;
|
|
using ModernKeePass.Services;
|
|
|
|
namespace ModernKeePass.ViewModels
|
|
{
|
|
public class SettingsSaveVm
|
|
{
|
|
private readonly ISettingsService _settings;
|
|
|
|
public SettingsSaveVm() : this(SettingsService.Instance)
|
|
{ }
|
|
|
|
public SettingsSaveVm(ISettingsService settings)
|
|
{
|
|
_settings = settings;
|
|
}
|
|
|
|
public bool IsSaveSuspend
|
|
{
|
|
get { return _settings.GetSetting("SaveSuspend", true); }
|
|
set { _settings.PutSetting("SaveSuspend", value); }
|
|
}
|
|
}
|
|
} |