mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-04 08:00:16 -04:00
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); }
|
||
|
}
|
||
|
}
|
||
|
}
|