Send a message on save to update commands can execute

This commit is contained in:
Geoffroy BONNEVILLE
2020-05-04 14:29:52 +02:00
parent 1e7662def7
commit b3c7683c12
7 changed files with 23 additions and 4 deletions

View File

@@ -266,6 +266,8 @@ namespace ModernKeePass.ViewModels
DeleteCommand = new RelayCommand(async () => await AskForDelete());
GoBackCommand = new RelayCommand(() => _navigation.GoBack());
GoToParentCommand = new RelayCommand(() => GoToGroup(_parent.Id));
MessengerInstance.Register<DatabaseSavedMessage>(this, _ => SaveCommand.RaiseCanExecuteChanged());
}
public async Task Initialize(string entryId)