From b012a3f061b656d7bb5b2dd71be40aad04d5f756 Mon Sep 17 00:00:00 2001 From: John T Maxwell III Date: Thu, 14 Nov 2024 08:25:34 -0800 Subject: [PATCH] Fixes LT-21934: FLEx freezes when clicking "Close" if parser is running (#205) Co-authored-by: Jake Oliver --- Src/LexText/ParserCore/ParseFiler.cs | 3 --- .../ParserCore/ParserCoreStrings.Designer.cs | 18 +++++++++--------- Src/LexText/ParserCore/ParserCoreStrings.resx | 6 +++--- Src/LexText/ParserCore/ParserWorker.cs | 12 ++++++++++-- Src/XCore/xWindow.cs | 2 ++ 5 files changed, 24 insertions(+), 17 deletions(-) diff --git a/Src/LexText/ParserCore/ParseFiler.cs b/Src/LexText/ParserCore/ParseFiler.cs index 20c4d970c5..8f9faa3ea0 100644 --- a/Src/LexText/ParserCore/ParseFiler.cs +++ b/Src/LexText/ParserCore/ParseFiler.cs @@ -161,9 +161,6 @@ private bool UpdateWordforms(object parameter) if (work.CheckParser) { // This was just a test. Don't update data. - string testform = work.Wordform.Form.BestVernacularAlternative.Text; - using (new TaskReport(String.Format(ParserCoreStrings.ksTestX, testform), m_taskUpdateHandler)) - { } FireWordformUpdated(work.Wordform, work.Priority, work.ParseResult, work.CheckParser); continue; } diff --git a/Src/LexText/ParserCore/ParserCoreStrings.Designer.cs b/Src/LexText/ParserCore/ParserCoreStrings.Designer.cs index 075913c202..af13bc7fe8 100644 --- a/Src/LexText/ParserCore/ParserCoreStrings.Designer.cs +++ b/Src/LexText/ParserCore/ParserCoreStrings.Designer.cs @@ -141,6 +141,15 @@ internal static string ksMaxElementsInRule { } } + /// + /// Looks up a localized string similar to Parsing {0}. + /// + internal static string ksParsingX { + get { + return ResourceManager.GetString("ksParsingX", resourceCulture); + } + } + /// /// Looks up a localized string similar to ???. /// @@ -177,15 +186,6 @@ internal static string ksStarted { } } - /// - /// Looks up a localized string similar to Tested {0}. - /// - internal static string ksTestX { - get { - return ResourceManager.GetString("ksTestX", resourceCulture); - } - } - /// /// Looks up a localized string similar to Trying Wordform {0}. /// diff --git a/Src/LexText/ParserCore/ParserCoreStrings.resx b/Src/LexText/ParserCore/ParserCoreStrings.resx index 0d6fff2d0f..da997fcf6a 100644 --- a/Src/LexText/ParserCore/ParserCoreStrings.resx +++ b/Src/LexText/ParserCore/ParserCoreStrings.resx @@ -1,4 +1,4 @@ - +