Fix compressing files in archives
This commit is contained in:
parent
5e024c9040
commit
cfec92db18
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -207,9 +207,9 @@ namespace Switch_Toolbox.Library.IO
|
||||
CompressionType = CompressionType.Yaz0;
|
||||
}
|
||||
|
||||
bool CompressFile = false;
|
||||
if (EnableDialog && FileIsCompressed)
|
||||
{
|
||||
bool CompressFile = false;
|
||||
if (Runtime.AlwaysCompressOnSave)
|
||||
CompressFile = true;
|
||||
else
|
||||
@ -217,6 +217,9 @@ namespace Switch_Toolbox.Library.IO
|
||||
DialogResult save = MessageBox.Show($"Compress file with {CompressionType}?", "File Save", MessageBoxButtons.YesNo);
|
||||
CompressFile = (save == DialogResult.Yes);
|
||||
}
|
||||
}
|
||||
else if (FileIsCompressed)
|
||||
CompressFile = true;
|
||||
|
||||
if (CompressFile)
|
||||
{
|
||||
@ -239,7 +242,6 @@ namespace Switch_Toolbox.Library.IO
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user