Do not show Workflows toolStrip button if there are no customized task settings

This commit is contained in:
McoreD 2014-05-18 14:21:55 +08:00
parent 399631c2b5
commit 50728e89ee
2 changed files with 8 additions and 1 deletions

View file

@ -1,4 +1,8 @@
ShareX 9.0.0 - 2014-05-16
ShareX 9.0.1
* Customized task settings are now shown as workflows in main window
ShareX 9.0.0 - 2014-05-16
* Capture screen recordings with audio using FFmpeg
* Capture screen recordings using Video Compression Manager (VCM) via Video for Windows (VfW) encoders

View file

@ -113,6 +113,7 @@ private void InitControls()
private void UpdateWorkflowsMenu()
{
tsddbWorkflows.DropDownItems.Clear();
Program.HotkeyManager.Hotkeys.ForEach<HotkeySettings>(x =>
{
if (!x.TaskSettings.IsUsingDefaultSettings)
@ -122,6 +123,8 @@ private void UpdateWorkflowsMenu()
tsddbWorkflows.DropDownItems.Add(tsmi);
}
});
tsddbWorkflows.Visible = tsddbWorkflows.DropDownItems.Count > 0;
}
private void UpdateDestinationStates()