1
Fork 0
mirror of https://github.com/thegeneralist01/Scene-Manager-DevRepo synced 2026-01-10 15:20:29 +01:00

Disabled option to dismiss driver if there are no paths

This commit is contained in:
Rich Dunne 2021-07-07 07:22:12 -06:00
parent 0a5eb76048
commit ac89da6cc8

View file

@ -39,11 +39,13 @@ namespace SceneManager.Menus
DirectDriver.Enabled = true;
Menu.AddItem(DismissDriver);
DismissDriver.ForeColor = Color.Gold;
DismissDriver.Enabled = true;
if (PathManager.Paths.Length == 0)
if (PathManager.Paths.All(x => x == null))
{
DirectOptions.Enabled = false;
DirectDriver.Enabled = false;
DismissDriver.Enabled = false;
}
Menu.RefreshIndex();