mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
24 lines
627 B
C#
24 lines
627 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using ModernKeePass.Application.Common.Interfaces;
|
|
|
|
namespace ModernKeePass.ViewModels
|
|
{
|
|
public class SettingsSaveVm
|
|
{
|
|
private readonly ISettingsProxy _settings;
|
|
|
|
public SettingsSaveVm() : this(App.Services.GetService<ISettingsProxy>())
|
|
{ }
|
|
|
|
public SettingsSaveVm(ISettingsProxy settings)
|
|
{
|
|
_settings = settings;
|
|
}
|
|
|
|
public bool IsSaveSuspend
|
|
{
|
|
get { return _settings.GetSetting("SaveSuspend", true); }
|
|
set { _settings.PutSetting("SaveSuspend", value); }
|
|
}
|
|
}
|
|
} |