Skip to content

Commit 585cfc0

Browse files
committed
Handle correctly CloseKeyStore as an async method
1 parent b842ff0 commit 585cfc0

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

KeyManager/Domain/EditKeyStoreControlViewModel.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,17 @@ public bool IsLoadingKeyEntries
105105

106106
public RelayCommand SaveFavoriteCommand { get; }
107107

108-
public void CloseKeyStore()
108+
public Task CloseKeyStore()
109109
{
110-
CloseKeyStore(true);
110+
return CloseKeyStore(true);
111111
}
112112

113-
public void CloseKeyStore(bool navigate)
113+
public async Task CloseKeyStore(bool navigate)
114114
{
115-
KeyStore?.Close(true);
115+
if (KeyStore != null)
116+
{
117+
await KeyStore.Close(true);
118+
}
116119
KeyStore = null;
117120
_keModels.Clear();
118121
Tabs.Clear();

0 commit comments

Comments
 (0)