From e9c0fcea5d9492eb5f02e5ecf071df3feeb82f42 Mon Sep 17 00:00:00 2001
From: Simpel <git@simpel.cc>
Date: Thu, 31 Aug 2023 13:55:48 +0200
Subject: [PATCH] feat: keep gui visible if finished

To read the elapsed time at the end and to see if it's really done let
the gui opened.

Signed-off-by: Conrad Zelck <git@simpel.cc>
---
 MXF-Track-Swap.au3 | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/MXF-Track-Swap.au3 b/MXF-Track-Swap.au3
index dd55d19..2c5ffca 100644
--- a/MXF-Track-Swap.au3
+++ b/MXF-Track-Swap.au3
@@ -3,7 +3,7 @@
 #AutoIt3Wrapper_UseX64=n
 #AutoIt3Wrapper_Res_Comment=Swaps audio tracks in mxf files.
 #AutoIt3Wrapper_Res_Description=Swaps audio tracks in mxf files.
-#AutoIt3Wrapper_Res_Fileversion=1.0.0.10
+#AutoIt3Wrapper_Res_Fileversion=1.0.0.11
 #AutoIt3Wrapper_Res_Fileversion_AutoIncrement=p
 #AutoIt3Wrapper_Res_LegalCopyright=Conrad Zelck
 #AutoIt3Wrapper_Res_SaveSource=y
@@ -633,7 +633,13 @@ Global $g_sStdErrAll
 
 _ReWrap()
 ShellExecute(@TempDir)
-
+While True
+    Switch GUIGetMsg()
+        Case $GUI_EVENT_CLOSE
+            ExitLoop
+    EndSwitch
+WEnd
+GUIDelete($g_hGUI)
 Exit
 
 ;~ #cs
-- 
GitLab