mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 23:50:18 -04:00
WIP Windows 10
Dependencies finally installed Removal of useless code Big cleanup in XAML styles (override colors the correct way)
This commit is contained in:
16
Win10App/ViewModels/SettingsVm.cs
Normal file
16
Win10App/ViewModels/SettingsVm.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user