Skip to content

Commit

Permalink
Gtk: Fix issues with ProgressForm closing too fast
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanfish committed Apr 1, 2024
1 parent 7385f7a commit 64c288d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions NAPS2.Lib/EtoForms/Ui/ProgressForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ void operation_StatusChanged(object? sender, EventArgs e)
{
if (_loaded && !_background)
{
Invoker.Current.Invoke(DisplayProgress);
Invoker.Current.InvokeDispatch(DisplayProgress);
}
}

void operation_Finished(object? sender, EventArgs e)
{
if (_loaded && !_background)
{
Invoker.Current.Invoke(Close);
Invoker.Current.InvokeDispatch(Close);
}
}

Expand All @@ -79,7 +79,7 @@ protected override void OnLoad(EventArgs e)
DisplayProgress();
if (_operation.IsFinished)
{
Close();
Invoker.Current.InvokeDispatch(Close);
}
}

Expand Down

0 comments on commit 64c288d

Please sign in to comment.