mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 07:30:40 +01:00
Disabled option to dismiss driver if there are no paths
This commit is contained in:
parent
0a5eb76048
commit
ac89da6cc8
1 changed files with 3 additions and 1 deletions
|
|
@ -39,11 +39,13 @@ namespace SceneManager.Menus
|
||||||
DirectDriver.Enabled = true;
|
DirectDriver.Enabled = true;
|
||||||
Menu.AddItem(DismissDriver);
|
Menu.AddItem(DismissDriver);
|
||||||
DismissDriver.ForeColor = Color.Gold;
|
DismissDriver.ForeColor = Color.Gold;
|
||||||
|
DismissDriver.Enabled = true;
|
||||||
|
|
||||||
if (PathManager.Paths.Length == 0)
|
if (PathManager.Paths.All(x => x == null))
|
||||||
{
|
{
|
||||||
DirectOptions.Enabled = false;
|
DirectOptions.Enabled = false;
|
||||||
DirectDriver.Enabled = false;
|
DirectDriver.Enabled = false;
|
||||||
|
DismissDriver.Enabled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Menu.RefreshIndex();
|
Menu.RefreshIndex();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue