diff --git a/XCI_Explorer/MainForm.cs b/XCI_Explorer/MainForm.cs index 8420ee3..ecb087d 100644 --- a/XCI_Explorer/MainForm.cs +++ b/XCI_Explorer/MainForm.cs @@ -1345,11 +1345,13 @@ namespace XCI_Explorer { if (MessageBox.Show("Trim XCI?", "XCI Explorer", MessageBoxButtons.YesNo) == DialogResult.Yes) { + using CenterWinDialog centerInner = new CenterWinDialog(this); if (!isTrimmed()) { FileStream fileStream = new FileStream(TB_File.Text, FileMode.Open, FileAccess.Write); fileStream.SetLength((long)UsedSize); fileStream.Close(); + B_TrimXCI.Enabled = false; MessageBox.Show("Done."); string[] array = new string[5] { @@ -1378,10 +1380,6 @@ namespace XCI_Explorer } TB_UsedSpace.Text = $"{num3:0.##} {array[num2]}"; } - else - { - MessageBox.Show("No trimming needed!"); - } } } else