Skip to content

Commit

Permalink
Fix Signout menu bug (#14855)
Browse files Browse the repository at this point in the history
* Fix PostDiff job

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

0 comments on commit ecd4ae1

Please sign in to comment.