Code refactoring

This commit is contained in:
Jaex 2022-12-10 16:32:39 +03:00
parent 7eb59947ec
commit 9385afe264

View file

@ -51,8 +51,7 @@ private void btnConnect_Click(object sender, EventArgs e)
{
DisconnectButtonClicked?.Invoke();
Connected = false;
UserInfo = null;
UpdateStatus(null);
}
else
{
@ -68,6 +67,10 @@ public void UpdateStatus(OAuth2Info oauth, OAuthUserInfo userInfo = null)
{
UserInfo = userInfo;
}
else
{
UserInfo = null;
}
UpdateStatus();
}