Skip to content

Commit

Permalink
Handle correctly CloseKeyStore as an async method
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxhy committed Sep 4, 2024
1 parent b842ff0 commit 585cfc0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions KeyManager/Domain/EditKeyStoreControlViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,17 @@ public bool IsLoadingKeyEntries

public RelayCommand SaveFavoriteCommand { get; }

public void CloseKeyStore()
public Task CloseKeyStore()
{
CloseKeyStore(true);
return CloseKeyStore(true);
}

public void CloseKeyStore(bool navigate)
public async Task CloseKeyStore(bool navigate)
{
KeyStore?.Close(true);
if (KeyStore != null)
{
await KeyStore.Close(true);
}
KeyStore = null;
_keModels.Clear();
Tabs.Clear();
Expand Down

0 comments on commit 585cfc0

Please sign in to comment.