From 1f21f9a2268f7c9cf600985503f8d19888880e76 Mon Sep 17 00:00:00 2001 From: VladiStep Date: Fri, 5 May 2023 14:55:06 +0300 Subject: [PATCH] Close #1358. --- UndertaleModTool/MainWindow.xaml.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/UndertaleModTool/MainWindow.xaml.cs b/UndertaleModTool/MainWindow.xaml.cs index e676f866d..4f0a29f87 100644 --- a/UndertaleModTool/MainWindow.xaml.cs +++ b/UndertaleModTool/MainWindow.xaml.cs @@ -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; }