Skip to content
Snippets Groups Projects
Commit fb51b12f authored by Simpel's avatar Simpel
Browse files

feat: delete temp file if using external audio


Signed-off-by: default avatarConrad Zelck <git@simpel.cc>
parent e9c0fcea
No related branches found
No related tags found
No related merge requests found
......@@ -772,6 +772,14 @@ Func _ReWrap()
EndIf
GUICtrlSetData($Progress2, 100)
GUICtrlSetData($Edit, "Done")
; delete temp file if worked with external audio
If $g_bExternalWavRouted Then
ConsoleWrite('Delete: ' & '"' & @TempDir & '\' & _StripFileExtension(_FileName($g_sMXFFile)) & $sSuffixTemp & @CRLF)
Sleep(1000)
Local $iSuccess = FileDelete(StringTrimRight(@TempDir & '\' & _StripFileExtension(_FileName($g_sMXFFile)) & $sSuffixTemp, 1))
If @error Then ConsoleWrite("! Error : " & @error & " " & @extended & @CRLF)
ConsoleWrite("$iSuccess: " & $iSuccess & @CRLF)
EndIf
WinSetOnTop($g_hGUI, "", $WINDOWS_ONTOP)
EndFunc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment