MainForm - Fix checking for audio file instead of a specific name

This commit is contained in:
miku-666
2024-03-23 18:15:30 +01:00
parent 123d529270
commit e980aeeae9
2 changed files with 3 additions and 3 deletions

View File

@@ -944,10 +944,10 @@ namespace PckStudio
private void audiopckToolStripMenuItem_Click(object sender, EventArgs e)
{
if (currentPCK.Contains("audio.pck", PckFileType.AudioFile))
if (currentPCK.Contains(PckFileType.AudioFile))
{
// the chance of this happening is really really slim but just in case
MessageBox.Show("There is already a file in this PCK named \"audio.pck\"!", "Can't create audio.pck");
MessageBox.Show("There is already an audio file in this PCK!", "Can't create audio.pck");
return;
}
if (string.IsNullOrEmpty(saveLocation))

2
Vendor/OMI-Lib vendored