Only show customized task settings in Workflow;

Otherwise it is no different from accessing through Capture menu
This commit is contained in:
McoreD 2014-05-18 13:08:15 +08:00
parent 24a066600c
commit 399631c2b5

View file

@ -115,9 +115,12 @@ private void UpdateWorkflowsMenu()
tsddbWorkflows.DropDownItems.Clear();
Program.HotkeyManager.Hotkeys.ForEach<HotkeySettings>(x =>
{
ToolStripMenuItem tsmi = new ToolStripMenuItem(x.TaskSettings.Description);
tsmi.Click += (sender, e) => HandleHotkeys(x);
tsddbWorkflows.DropDownItems.Add(tsmi);
if (!x.TaskSettings.IsUsingDefaultSettings)
{
ToolStripMenuItem tsmi = new ToolStripMenuItem(x.TaskSettings.Description);
tsmi.Click += (sender, e) => HandleHotkeys(x);
tsddbWorkflows.DropDownItems.Add(tsmi);
}
});
}