Skip to content

Commit

Permalink
Fix bug when user already logged in, do not add logout option again (#…
Browse files Browse the repository at this point in the history
…14848)

* Fix PostDiff job

* Update ShortcutToolbar.xaml.cs
  • Loading branch information
zeusongit authored Jan 16, 2024
1 parent f47b7db commit 8406ccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DynamoCoreWpf/Controls/ShortcutToolbar.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public ShortcutToolbar(DynamoViewModel dynamoViewModel)
if (authManager != null)
{
authManager.LoginStateChanged += AuthChangeHandler;
if (authManager.LoginState == LoginState.LoggedIn)
if (authManager.LoginState == LoginState.LoggedIn && loginMenu.Items.Count == 0)
{
loginMenu.Items.Add(logoutOption);
}
Expand Down

0 comments on commit 8406ccf

Please sign in to comment.