diff --git a/BecquerelMonitor/BecquerelMonitor.csproj b/BecquerelMonitor/BecquerelMonitor.csproj index 0e3cc65..7739e9c 100644 --- a/BecquerelMonitor/BecquerelMonitor.csproj +++ b/BecquerelMonitor/BecquerelMonitor.csproj @@ -35,8 +35,8 @@ 2022.07.08.7 true index.html - 1 - 2024.03.1.1 + 2 + 2024.03.1.2 true true true diff --git a/BecquerelMonitor/MainForm.cs b/BecquerelMonitor/MainForm.cs index 46bc056..48b56b5 100644 --- a/BecquerelMonitor/MainForm.cs +++ b/BecquerelMonitor/MainForm.cs @@ -244,7 +244,7 @@ void InitializeToolViews() // Token: 0x06000A4A RID: 2634 RVA: 0x0003CB48 File Offset: 0x0003AD48 void MainForm_FormClosing(object sender, FormClosingEventArgs e) { - if (!this.initialized) + if (!this.initialized || e.Cancel) { return; } @@ -1279,14 +1279,14 @@ void CloseActiveDocument() { if (this.activeDocument != null) { - this.StopRecordingOrTesting(this.activeDocument); - this.DestroyVCPThreads(this.activeDocument); - this.DestroyRCThreads(this.activeDocument); if (this.ConfirmSaveDocument(this.activeDocument)) { this.UnsubscribeDocumentEvent(this.activeDocument); this.documentManager.CloseDocument(this.activeDocument); } + this.StopRecordingOrTesting(this.activeDocument); + this.DestroyVCPThreads(this.activeDocument); + this.DestroyRCThreads(this.activeDocument); } GC.Collect(); @@ -1673,14 +1673,14 @@ void DocEnergySpectrum_FormClosing(object sender, FormClosingEventArgs e) return; } DocEnergySpectrum docEnergySpectrum = (DocEnergySpectrum)sender; - this.StopRecordingOrTesting(docEnergySpectrum); - this.DestroyVCPThreads(docEnergySpectrum); - this.DestroyRCThreads(docEnergySpectrum); if (!this.ConfirmSaveDocument(docEnergySpectrum)) { e.Cancel = true; return; } + this.StopRecordingOrTesting(docEnergySpectrum); + this.DestroyVCPThreads(docEnergySpectrum); + this.DestroyRCThreads(docEnergySpectrum); docEnergySpectrum.FormClosing -= this.DocEnergySpectrum_FormClosing; } diff --git a/BecquerelMonitor/Properties/AssemblyInfo.cs b/BecquerelMonitor/Properties/AssemblyInfo.cs index 57853cd..3357e01 100644 --- a/BecquerelMonitor/Properties/AssemblyInfo.cs +++ b/BecquerelMonitor/Properties/AssemblyInfo.cs @@ -4,13 +4,13 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -[assembly: AssemblyVersion("2024.03.1.1")] +[assembly: AssemblyVersion("2024.03.1.2")] [assembly: AssemblyProduct("BecquerelMonitor")] [assembly: AssemblyCopyright("free")] [assembly: AssemblyTrademark("none")] [assembly: AssemblyConfiguration("")] [assembly: Guid("40110b38-4882-47c1-ad94-a71e58dcb5f8")] -[assembly: AssemblyFileVersion("2024.03.1.1")] +[assembly: AssemblyFileVersion("2024.03.1.2")] [assembly: AssemblyDescription("")] [assembly: AssemblyCompany("free")] [assembly: CompilationRelaxations(8)]