mirror of
https://github.com/ShareX/ShareX.git
synced 2024-06-24 01:00:27 +12:00
Code refactoring
This commit is contained in:
parent
7eb59947ec
commit
9385afe264
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue