From 64c288ddcf2c8e8bc0161a0fe386364aed5eacdc Mon Sep 17 00:00:00 2001 From: Ben Olden-Cooligan Date: Mon, 1 Apr 2024 01:18:54 -0700 Subject: [PATCH] Gtk: Fix issues with ProgressForm closing too fast #345 --- NAPS2.Lib/EtoForms/Ui/ProgressForm.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NAPS2.Lib/EtoForms/Ui/ProgressForm.cs b/NAPS2.Lib/EtoForms/Ui/ProgressForm.cs index ef518b6bf5..f2c14c4770 100644 --- a/NAPS2.Lib/EtoForms/Ui/ProgressForm.cs +++ b/NAPS2.Lib/EtoForms/Ui/ProgressForm.cs @@ -57,7 +57,7 @@ void operation_StatusChanged(object? sender, EventArgs e) { if (_loaded && !_background) { - Invoker.Current.Invoke(DisplayProgress); + Invoker.Current.InvokeDispatch(DisplayProgress); } } @@ -65,7 +65,7 @@ void operation_Finished(object? sender, EventArgs e) { if (_loaded && !_background) { - Invoker.Current.Invoke(Close); + Invoker.Current.InvokeDispatch(Close); } } @@ -79,7 +79,7 @@ protected override void OnLoad(EventArgs e) DisplayProgress(); if (_operation.IsFinished) { - Close(); + Invoker.Current.InvokeDispatch(Close); } }