From 58aa30f0e8d71d982d1b5997e8298cd3dea3cdd1 Mon Sep 17 00:00:00 2001 From: MattNL Date: Fri, 16 Jun 2023 07:56:51 -0400 Subject: [PATCH] Fixed COL Editor display messages --- PCK-Studio/Forms/Editor/COLEditor.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/PCK-Studio/Forms/Editor/COLEditor.cs b/PCK-Studio/Forms/Editor/COLEditor.cs index 62be2cc6..7846cfd1 100644 --- a/PCK-Studio/Forms/Editor/COLEditor.cs +++ b/PCK-Studio/Forms/Editor/COLEditor.cs @@ -269,10 +269,8 @@ namespace PckStudio.Forms.Editor } catch (Exception ex) { - MessageBox.Show(this, $"Failed to read the selected file\nError: {ex.Message}", "Failed to read .col file"); + MessageBox.Show(this, $"Failed to save the selected file\nError: {ex.Message}", "Failed to save .col file"); } - - SetUpDefaultFile(null, EventArgs.Empty, 11, false); } else return; } @@ -662,13 +660,12 @@ namespace PckStudio.Forms.Editor { var reader = new COLFileReader(); colourfile = reader.FromFile(ofd.FileName); + SetUpDefaultFile(null, EventArgs.Empty, 11, false); } catch (Exception ex) { MessageBox.Show(this, $"Failed to read the selected file\nError: {ex.Message}", "Failed to read .col file"); } - - SetUpDefaultFile(null, EventArgs.Empty, 11, false); } else if(_file is null) {