Fix Google Shortener settings

This commit is contained in:
SupSuper 2018-04-12 04:20:55 +01:00
parent 1084054dd1
commit a93ec82096

View file

@ -738,6 +738,7 @@ public void LoadSettings()
#region Google URL Shortener
atcGoogleURLShortenerAccountType.SelectedAccountType = Config.GoogleURLShortenerAccountType;
oauth2GoogleURLShortener.Enabled = Config.GoogleURLShortenerAccountType == AccountType.User;
if (OAuth2Info.CheckOAuth(Config.GoogleURLShortenerOAuth2Info))
{
@ -3069,6 +3070,7 @@ private void txtBitlyDomain_TextChanged(object sender, EventArgs e)
private void atcGoogleURLShortenerAccountType_AccountTypeChanged(AccountType accountType)
{
Config.GoogleURLShortenerAccountType = accountType;
oauth2GoogleURLShortener.Enabled = accountType == AccountType.User;
}
private void oauth2GoogleURLShortener_OpenButtonClicked()