From 2478c61df654b2ccbf953733ed6586b55f97ac64 Mon Sep 17 00:00:00 2001 From: Robert McRackan Date: Thu, 28 Oct 2021 14:38:01 -0400 Subject: [PATCH] Bugfix: template validation was opposite #142 --- AppScaffolding/AppScaffolding.csproj | 2 +- LibationWinForms/Dialogs/SettingsDialog.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AppScaffolding/AppScaffolding.csproj b/AppScaffolding/AppScaffolding.csproj index ef8e7e9a..d69f6348 100644 --- a/AppScaffolding/AppScaffolding.csproj +++ b/AppScaffolding/AppScaffolding.csproj @@ -3,7 +3,7 @@ net5.0 - 6.3.1.1 + 6.3.2.1 diff --git a/LibationWinForms/Dialogs/SettingsDialog.cs b/LibationWinForms/Dialogs/SettingsDialog.cs index e148fc54..f8094ab6 100644 --- a/LibationWinForms/Dialogs/SettingsDialog.cs +++ b/LibationWinForms/Dialogs/SettingsDialog.cs @@ -141,17 +141,17 @@ namespace LibationWinForms.Dialogs return; } - if (Templates.Folder.IsValid(folderTemplateTb.Text)) + if (!Templates.Folder.IsValid(folderTemplateTb.Text)) { MessageBox.Show($"Not saving change to folder naming template. Invalid format.", "Invalid folder template", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } - if (Templates.File.IsValid(fileTemplateTb.Text)) + if (!Templates.File.IsValid(fileTemplateTb.Text)) { MessageBox.Show($"Not saving change to file naming template. Invalid format.", "Invalid file template", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } - if (Templates.ChapterFile.IsValid(chapterFileTemplateTb.Text)) + if (!Templates.ChapterFile.IsValid(chapterFileTemplateTb.Text)) { MessageBox.Show($"Not saving change to chapter file naming template. Invalid format.", "Invalid chapter file template", MessageBoxButtons.OK, MessageBoxIcon.Error); return;