mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 17:56:51 +13:00
Fix Twitter ui
This commit is contained in:
parent
47c4a7a54e
commit
41905669f0
1 changed files with 10 additions and 4 deletions
|
@ -505,6 +505,7 @@ private void CreateUserControlEvents()
|
|||
ucTwitterAccounts.btnDuplicate.Click += TwitterAccountDuplicateButton_Click;
|
||||
ucTwitterAccounts.btnTest.Text = "Authorize";
|
||||
ucTwitterAccounts.btnTest.Click += TwitterAccountAuthButton_Click;
|
||||
ucTwitterAccounts.lbAccounts.SelectedIndexChanged += TwitterAccountSelectedIndexChanged;
|
||||
}
|
||||
|
||||
#region FTP
|
||||
|
@ -571,10 +572,7 @@ private void FTPAccountDuplicateButton_Click(object sender, EventArgs e)
|
|||
|
||||
private void FTPAccountTestButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (CheckFTPAccounts())
|
||||
{
|
||||
TestFTPAccount(Config.FTPAccountList[ucFTPAccounts.lbAccounts.SelectedIndex], false);
|
||||
}
|
||||
TestFTPAccount(Config.FTPAccountList[ucFTPAccounts.lbAccounts.SelectedIndex], false);
|
||||
}
|
||||
|
||||
private void FtpAccountSettingsGrid_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
|
||||
|
@ -692,6 +690,14 @@ private void TwitterAccountAuthButton_Click(object sender, EventArgs e)
|
|||
}
|
||||
}
|
||||
|
||||
private void TwitterAccountSelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (ucTwitterAccounts.lbAccounts.SelectedIndex > -1)
|
||||
{
|
||||
Config.TwitterSelectedAccount = ucTwitterAccounts.lbAccounts.SelectedIndex;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Twitter
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue