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:
parent
0a5eb76048
commit
ac89da6cc8
1 changed files with 3 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue