Skip to content

Commit

Permalink
Merged PR 681: V3.3.7 R5
Browse files Browse the repository at this point in the history
Related work items: #1155
  • Loading branch information
MikeWilliams-UK committed Aug 14, 2024
1 parent ff133df commit b7a1f18
Show file tree
Hide file tree
Showing 33 changed files with 76 additions and 68 deletions.
7 changes: 6 additions & 1 deletion src/Chem4Word.V3/Chem4WordV3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1769,6 +1769,8 @@ private void HandleRightClick(Word.Selection selection)
Telemetry.Write(module, "Exception", ex.ToString());
}

ClearChemistryContextMenus();

if (selectedWords.Count > 0)
{
AddChemistryMenuPopup(selectedWords);
Expand Down Expand Up @@ -1847,7 +1849,8 @@ private void ClearChemistryContextMenus()
var popupControl = (CommandBarPopup)contextMenu.FindControl(
MsoControlType.msoControlPopup, Type.Missing,
ContextMenuTag, true, true);
if (popupControl != null)
if (popupControl != null
&& popupControl.Caption.Equals(ContextMenuText))
{
popupControl.Delete(true);
}
Expand Down Expand Up @@ -1979,6 +1982,8 @@ private void OnDocumentChange()
DisableContentControlEvents();
EnableContentControlEvents();

ClearChemistryContextMenus();

SelectChemistry(document.Application.Selection);
EvaluateChemistryAllowed();

Expand Down
11 changes: 4 additions & 7 deletions src/Chem4Word.V3/Data/Chem4Word-Versions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
<Version>
<Number>3.3.7 Release 5</Number>
<IsBeta>false</IsBeta>
<Released>31-Aug-2024</Released>
<Url>https://www.chem4word.co.uk/files3-3/Chem4Word-Setup.3.3.7.Release.5.msi</Url>
<Released>14-Aug-2024</Released>
<Changes>
<Change>...</Change>
<Change>...</Change>
<Change>UX: Improve RightClick "Convert To Chemistry" context menu</Change>
<Change>If you like our product, please consider buying us a coffee at https://www.buymeacoffee.com/chem4word</Change>
<Change>Please download Chem4Word-Setup.exe via https://www.chem4word.co.uk/download/ if you encounter any difficulties updating</Change>
</Changes>
<Url>https://www.chem4word.co.uk/files3-3/Chem4Word-Setup.3.3.7.Release.5.msi</Url>
</Version>
<Version>
<Number>3.3.6 Release 4</Number>
Expand All @@ -22,9 +21,7 @@
<Change>BugFix: Prevent html input in searchers</Change>
<Change>UX: Prohibit import of binary files</Change>
<Change>BugFix: User unable to hide Hydrogens in Renderer (seen in Word document)</Change>
<Change>Update NuGet packages</Change>
<Change>If you like our product, please consider buying us a coffee at https://www.buymeacoffee.com/chem4word</Change>
<Change>Please download Chem4Word-Setup.exe via https://www.chem4word.co.uk/download/ if you encounter any difficulties updating</Change>
<Change>Security: Update NuGet packages (Microsoft Security Advisory CVE-2024-30105)</Change>
</Changes>
</Version>
<Version>
Expand Down
2 changes: 1 addition & 1 deletion src/Chem4Word.V3/Data/This-Version.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
<Version>
<Number>3.3.7 Release 5</Number>
<IsBeta>false</IsBeta>
<Released>31-Aug-2024</Released>
<Released>14-Aug-2024</Released>
</Version>
10 changes: 8 additions & 2 deletions src/Chem4Word.V3/Helpers/LibraryFileHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,17 @@ public ListOfLibraries GetListOfLibraries(bool silent = false)

var usableLibraries = new List<string> { $"Libraries [{result.AvailableDatabases.Count}]:" };
usableLibraries.AddRange(result.AvailableDatabases.Select(l => $" '{l.DisplayName}' [{l.Properties["Count"]}]"));
_telemetry.Write(module, "Information", string.Join(Environment.NewLine, usableLibraries));
if (!silent)
{
_telemetry.Write(module, "Information", string.Join(Environment.NewLine, usableLibraries));
}
}
else
{
_telemetry.Write(module, "Warning", "No usable databases found!");
if (!silent)
{
_telemetry.Write(module, "Warning", "No usable databases found!");
}
DeleteSettingsFile();
result = null;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Chem4Word.V3/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyFileVersion("3.3.7.9009")]
[assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyFileVersion("3.3.7.8992")]
2 changes: 1 addition & 1 deletion src/Chem4Word.V3/Ribbon/Chem4WordRibbon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ private void BeforeButtonChecks()
{
Globals.Chem4WordV3.ListOfDetectedLibraries
= new LibraryFileHelper(Globals.Chem4WordV3.Telemetry, Globals.Chem4WordV3.AddInInfo.ProgramDataPath)
.GetListOfLibraries();
.GetListOfLibraries(silent:true);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Chem4Word.V3/UI/WPF/SettingsControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ private void ReloadGlobalListOfLibraries()
{
Globals.Chem4WordV3.ListOfDetectedLibraries
= new LibraryFileHelper(Globals.Chem4WordV3.Telemetry, Globals.Chem4WordV3.AddInInfo.ProgramDataPath)
.GetListOfLibraries();
.GetListOfLibraries(silent:true);
}

private string GetPropertyValue(DatabaseDetails database, string key, string defaultValue)
Expand Down
4 changes: 2 additions & 2 deletions src/Chemistry/Chem4Word.ACME/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyFileVersion("3.3.7.9009")]
[assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyFileVersion("3.3.7.8992")]
4 changes: 2 additions & 2 deletions src/Chemistry/Chem4Word.Model2/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyFileVersion("3.3.7.9009")]
[assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyFileVersion("3.3.7.8992")]
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyFileVersion("3.3.7.9009")]
[assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyFileVersion("3.3.7.8992")]
4 changes: 2 additions & 2 deletions src/Common/Chem4Word.Core/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyFileVersion("3.3.7.9009")]
[assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyFileVersion("3.3.7.8992")]
4 changes: 2 additions & 2 deletions src/Common/Chem4Word.Telemetry/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyFileVersion("3.3.7.9009")]
[assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyFileVersion("3.3.7.8992")]
2 changes: 1 addition & 1 deletion src/Common/Chem4Word.Telemetry/TelemetryWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ private void WritePrivate(string operation, string level, string message)
processId = _helper.ProcessId;
if (string.IsNullOrEmpty(_helper.MachineId) || _helper.MachineId.Equals(Guid.Empty.ToString("D")))
{
SystemHelper.GetMachineId();
machineId = SystemHelper.GetMachineId();
}
else
{
Expand Down
4 changes: 2 additions & 2 deletions src/Installer/Chem4WordSetup/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyFileVersion("3.3.7.9009")]
[assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyFileVersion("3.3.7.8992")]
4 changes: 2 additions & 2 deletions src/Installer/Chem4WordUpdater/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyFileVersion("3.3.7.9009")]
[assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyFileVersion("3.3.7.8992")]
4 changes: 2 additions & 2 deletions src/Installer/WiX.CustomAction/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyFileVersion("3.3.7.9009")]
[assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyFileVersion("3.3.7.8992")]
2 changes: 1 addition & 1 deletion src/Installer/WiXInstaller/Product.wxs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<!-- For automatic upgrade to work only first three parts of version number are used -->
<Product Id="*" Name="Chemistry Add-In for Microsoft Word 2024 Release 5" Manufacturer="Chem4Word" Version="3.3.7.9009" UpgradeCode="865226e7-d29d-49aa-a390-dda49979b102" Language="1033">
<Product Id="*" Name="Chemistry Add-In for Microsoft Word 2024 Release 5" Manufacturer="Chem4Word" Version="3.3.7.8992" UpgradeCode="865226e7-d29d-49aa-a390-dda49979b102" Language="1033">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
<MajorUpgrade DowngradeErrorMessage="A newer version of Chem4Word is already installed." />
<Media Id="1" Cabinet="product.cab" EmbedCab="yes" CompressionLevel="high" />
Expand Down
2 changes: 1 addition & 1 deletion src/Notes/Releases.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Set Build Numbers

.\Set-Assembly-Version.ps1 -version 3.3.7 -name "Release 5" -released "31-Aug-2024" -path ..
.\Set-Assembly-Version.ps1 -version 3.3.7 -name "Release 5" -released "14-Aug-2024" -path ..

.\Set-Assembly-Version.ps1 -version 3.3.6 -name "Release 4" -released "07-Aug-2024" -path ..
.\Set-Assembly-Version.ps1 -version 3.3.5 -name "Release 3" -released "20-Mar-2024" -path ..
Expand Down
4 changes: 2 additions & 2 deletions src/PlugIns/Contracts/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyFileVersion("3.3.7.9009")]
[assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyFileVersion("3.3.7.8992")]
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyFileVersion("3.3.7.9009")]
// [assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyFileVersion("3.3.7.8992")]
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyFileVersion("3.3.7.9009")]
// [assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyFileVersion("3.3.7.8992")]
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyFileVersion("3.3.7.9009")]
[assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyFileVersion("3.3.7.8992")]
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyFileVersion("3.3.7.9009")]
[assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyFileVersion("3.3.7.8992")]
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyFileVersion("3.3.7.9009")]
[assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyFileVersion("3.3.7.8992")]
4 changes: 2 additions & 2 deletions src/PlugIns/Renderers/OoXmlV4/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyFileVersion("3.3.7.9009")]
[assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyFileVersion("3.3.7.8992")]
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyFileVersion("3.3.7.9009")]
[assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyFileVersion("3.3.7.8992")]
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyFileVersion("3.3.7.9009")]
[assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyFileVersion("3.3.7.8992")]
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyFileVersion("3.3.7.9009")]
[assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyFileVersion("3.3.7.8992")]
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyFileVersion("3.3.7.9009")]
[assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyFileVersion("3.3.7.8992")]
6 changes: 3 additions & 3 deletions src/TestHarness/LibraryTransformer/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyFileVersion("3.3.7.9009")]
// [assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyFileVersion("3.3.7.8992")]
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyFileVersion("3.3.7.9009")]
[assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyFileVersion("3.3.7.8992")]
6 changes: 3 additions & 3 deletions src/TestHarness/Wpf.UI.Sandbox/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyFileVersion("3.3.7.9009")]
// [assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyFileVersion("3.3.7.8992")]
4 changes: 2 additions & 2 deletions src/UnitTests/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.3.7.9009")]
[assembly: AssemblyFileVersion("3.3.7.9009")]
[assembly: AssemblyVersion("3.3.7.8992")]
[assembly: AssemblyFileVersion("3.3.7.8992")]

0 comments on commit b7a1f18

Please sign in to comment.