From d6f2ee1ed5aa1257e408a4afab2aab8fd8268764 Mon Sep 17 00:00:00 2001 From: Jake Oliver Date: Fri, 13 Dec 2024 00:13:54 -0500 Subject: [PATCH] LT-21990: Refresh dictionary on publication change (#236) --- Src/xWorks/XhtmlDocView.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Src/xWorks/XhtmlDocView.cs b/Src/xWorks/XhtmlDocView.cs index a1dee06191..a0c4d5c8ec 100644 --- a/Src/xWorks/XhtmlDocView.cs +++ b/Src/xWorks/XhtmlDocView.cs @@ -1342,7 +1342,8 @@ private void UpdateContent(string configurationFile, bool allOnOnePage = false) else { // Don't load the configuration file twice. - if (configurationFile == m_loadedConfig) + var currentPublication = GetCurrentPublication(); + if (configurationFile == m_loadedConfig && currentPublication == m_pubDecorator?.Publication?.ChooserNameTS?.Text) return; m_loadedConfig = configurationFile; var xhtmlPath = SaveConfiguredXhtmlWithProgress(configurationFile, allOnOnePage);