UDBScript: the progress bar in the running script dialog now stops its animation when no progress was set and the script finished.

This commit is contained in:
biwa 2022-01-07 11:56:26 +01:00
parent 8992b66df5
commit cfada3b4c9

View file

@ -208,6 +208,10 @@ namespace CodeImp.DoomBuilder.UDBScript
btnAction.Text = "Close"; btnAction.Text = "Close";
btnAction.Enabled = true; btnAction.Enabled = true;
// Stop the progress bar from animating when the script finished
if (progressbar.Style == ProgressBarStyle.Marquee)
progressbar.Style = ProgressBarStyle.Continuous;
if (autoclose) if (autoclose)
{ {
MakeInvisible(); MakeInvisible();