Instead of disabling not logged in uploaders, allow them to be selectable but instead use red text, that way ShareX can automatically open destination settings window with correct tab selected and let users log in

This commit is contained in:
Jaex 2018-01-23 03:46:02 +03:00
parent f2f62e7ffd
commit d4598ce711

View file

@ -537,7 +537,8 @@ private void EnableDisableToolStripMenuItems<T>(params ToolStripDropDownItem[] p
{
for (int i = 0; i < parent.DropDownItems.Count; i++)
{
parent.DropDownItems[i].Enabled = UploadersConfigValidator.Validate<T>(i, Program.UploadersConfig);
parent.DropDownItems[i].ForeColor = UploadersConfigValidator.Validate<T>(i, Program.UploadersConfig) ?
SystemColors.ControlText : Color.FromArgb(200, 0, 0);
}
}
}