mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
24 lines
608 B
C#
24 lines
608 B
C#
using Autofac;
|
|
using ModernKeePass.Domain.Interfaces;
|
|
|
|
namespace ModernKeePass.ViewModels.ListItems
|
|
{
|
|
public class SettingsSaveViewModel
|
|
{
|
|
private readonly ISettingsService _settings;
|
|
|
|
public SettingsSaveViewModel() : this(App.Container.Resolve<ISettingsService>())
|
|
{ }
|
|
|
|
public SettingsSaveViewModel(ISettingsService settings)
|
|
{
|
|
_settings = settings;
|
|
}
|
|
|
|
public bool IsSaveSuspend
|
|
{
|
|
get => _settings.GetSetting("SaveSuspend", true);
|
|
set => _settings.PutSetting("SaveSuspend", value);
|
|
}
|
|
}
|
|
} |