We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6666ff3 + 6c89168 commit 712f97eCopy full SHA for 712f97e
Microsoft.Toolkit.Graph.Controls/Controls/LoginButton/LoginButton.cs
@@ -185,6 +185,12 @@ public async Task LoginAsync()
185
/// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
186
public async Task LogoutAsync()
187
{
188
+ // Close Menu
189
+ if (FlyoutBase.GetAttachedFlyout(_loginButton) is FlyoutBase flyout)
190
+ {
191
+ flyout.Hide();
192
+ }
193
+
194
if (IsLoading)
195
196
return;
@@ -217,12 +223,6 @@ public async Task LogoutAsync()
217
223
218
224
LogoutCompleted?.Invoke(this, new EventArgs());
219
225
}
220
-
221
- // Close Menu
222
- if (FlyoutBase.GetAttachedFlyout(_loginButton) is FlyoutBase flyout)
- {
- flyout.Hide();
- }
226
227
228
0 commit comments