From cfada3b4c9c0b2405fbbe36684698e8eac8cd46b Mon Sep 17 00:00:00 2001 From: biwa <6475593+biwa@users.noreply.github.com> Date: Fri, 7 Jan 2022 11:56:26 +0100 Subject: [PATCH] UDBScript: the progress bar in the running script dialog now stops its animation when no progress was set and the script finished. --- Source/Plugins/UDBScript/Windows/ScriptRunnerForm.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Plugins/UDBScript/Windows/ScriptRunnerForm.cs b/Source/Plugins/UDBScript/Windows/ScriptRunnerForm.cs index 52381888..f2a21fc2 100644 --- a/Source/Plugins/UDBScript/Windows/ScriptRunnerForm.cs +++ b/Source/Plugins/UDBScript/Windows/ScriptRunnerForm.cs @@ -208,6 +208,10 @@ namespace CodeImp.DoomBuilder.UDBScript btnAction.Text = "Close"; btnAction.Enabled = true; + // Stop the progress bar from animating when the script finished + if (progressbar.Style == ProgressBarStyle.Marquee) + progressbar.Style = ProgressBarStyle.Continuous; + if (autoclose) { MakeInvisible();