From 271b0276c0bf4e68108184832715df230a3dd20d Mon Sep 17 00:00:00 2001 From: FarisR99 Date: Tue, 29 Mar 2022 19:37:14 +0100 Subject: [PATCH] Delete temp MLC directory --- IMLCGui/MainWindow.xaml.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/IMLCGui/MainWindow.xaml.cs b/IMLCGui/MainWindow.xaml.cs index 04fc063..88d5ecd 100644 --- a/IMLCGui/MainWindow.xaml.cs +++ b/IMLCGui/MainWindow.xaml.cs @@ -842,6 +842,11 @@ private void BtnConfigureDownload_Click(object sender, RoutedEventArgs e) FileUtils.CopyAndMove(mlcWindowsPath, finalMLCPath); FileUtils.Delete(mlcWindowsPath); this._logger.Log($"Moved MLC to \"{finalMLCPath}\""); + if (FileUtils.DoesExist(extractedZipDirectory)) + { + this._logger.Log($"Deleting temporary MLC directory at \"{extractedZipDirectory}"); + FileUtils.Delete(extractedZipDirectory); + } Dispatcher.Invoke(() => { this.WriteToConfigureLog($"Extracted MLC to: {finalMLCPath}");