Fix initial login state not being reflected in user panel

This commit is contained in:
Dean Herbert 2017-05-25 22:43:33 +09:00
parent 47be8b42aa
commit 9eec2edd30
1 changed files with 2 additions and 1 deletions

View File

@ -134,7 +134,6 @@ public void APIStateChanged(APIAccess api, APIState state)
panel.Status.BindTo(api.LocalUser.Value.Status);
dropdown.Current.TriggerChange();
dropdown.Current.ValueChanged += newValue =>
{
switch (newValue)
@ -156,6 +155,8 @@ public void APIStateChanged(APIAccess api, APIState state)
break;
}
};
dropdown.Current.TriggerChange();
break;
}