Skip to content

Commit

Permalink
Merge pull request #1364 from VladiStep/scriptsEmptyImprovement
Browse files Browse the repository at this point in the history
  • Loading branch information
Grossley authored May 5, 2023
2 parents 3218cbe + 1f21f9a commit 2e2f845
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions UndertaleModTool/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2126,6 +2126,14 @@ private void MenuItem_RunScript_SubmenuOpened(object sender, RoutedEventArgs e,
if (!directory.Exists)
{
item.Items.Add(new MenuItem {Header = $"(Path {folderDir} does not exist, cannot search for files!)", IsEnabled = false});

if (item.Name == "RootScriptItem")
{
var otherScripts1 = new MenuItem {Header = "Run _other script..."};
otherScripts1.Click += MenuItem_RunOtherScript_Click;
item.Items.Add(otherScripts1);
}

return;
}

Expand Down

0 comments on commit 2e2f845

Please sign in to comment.