mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 17:56:51 +13:00
Fix Google Shortener settings
This commit is contained in:
parent
1084054dd1
commit
a93ec82096
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue