mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
Unregister the messenger everywhere on unload/navigate from
This commit is contained in:
@@ -69,5 +69,11 @@ namespace ModernKeePass.ViewModels
|
||||
await _mediator.Send(new CloseDatabaseCommand());
|
||||
_navigation.NavigateTo(Constants.Navigation.MainPage);
|
||||
}
|
||||
|
||||
public override void Cleanup()
|
||||
{
|
||||
MessengerInstance.Unregister(this);
|
||||
base.Cleanup();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user