Hide menu items for actions when needed

This commit is contained in:
Tim Young 2018-05-11 10:53:39 -05:00
parent f68e3138f4
commit 14337fdc06

View File

@ -2838,6 +2838,10 @@ namespace EduNetworkBuilder
ActionCollection AC = OurSettings.GetUserActionCollection(); ActionCollection AC = OurSettings.GetUserActionCollection();
if(AC != null && AC.GetActionCount >0) if(AC != null && AC.GetActionCount >0)
replayToolStripMenuItem.Visible = true; //Only visible if we have something to replay replayToolStripMenuItem.Visible = true; //Only visible if we have something to replay
if (AC.CurrentNeedsStoring)
storeReplayToolStripMenuItem.Visible = true;
if (AC.HasUnsavedChanges)
saveReplayToolStripMenuItem.Visible = true;
} }
else else
{ {