diff --git a/MCLauncher/MainWindow.xaml.cs b/MCLauncher/MainWindow.xaml.cs index da4c5e4..63da076 100644 --- a/MCLauncher/MainWindow.xaml.cs +++ b/MCLauncher/MainWindow.xaml.cs @@ -162,6 +162,7 @@ private async void ImportButtonClicked(object sender, RoutedEventArgs e) { await Task.Run(() => { try { ZipFile.ExtractToDirectory(openFileDlg.FileName, directory); + File.Delete(Path.Combine(directory, "AppxSignature.p7x")); } catch (InvalidDataException ex) { Debug.WriteLine("Failed extracting appx " + openFileDlg.FileName + ": " + ex.ToString()); MessageBox.Show("Failed to import appx " + openFileDlg.SafeFileName + ". It may be corrupted or not an appx file.\n\nExtraction error: " + ex.Message, "Import failure");