mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00

Dependencies finally installed Removal of useless code Big cleanup in XAML styles (override colors the correct way)
16 lines
411 B
C#
16 lines
411 B
C#
using MediatR;
|
|
using ModernKeePass.Application.Database.Queries.GetDatabase;
|
|
|
|
namespace ModernKeePass.ViewModels
|
|
{
|
|
public class SettingsVm
|
|
{
|
|
public bool IsDatabaseOpened { get; }
|
|
|
|
public SettingsVm(IMediator mediator)
|
|
{
|
|
var database = mediator.Send(new GetDatabaseQuery()).GetAwaiter().GetResult();
|
|
IsDatabaseOpened = database.IsOpen;
|
|
}
|
|
}
|
|
} |