From b7767002ae2613023889d5c8deabf4e3dcc5ca46 Mon Sep 17 00:00:00 2001 From: daviunic Date: Wed, 18 Nov 2020 10:41:04 +0100 Subject: [PATCH] Fixed issue #86 Missing VMCountRefresh call when 86Box.exe process exits --- 86BoxManager/Properties/AssemblyInfo.cs | 4 ++-- 86BoxManager/frmMain.cs | 9 +++------ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/86BoxManager/Properties/AssemblyInfo.cs b/86BoxManager/Properties/AssemblyInfo.cs index b35766c..d940455 100644 --- a/86BoxManager/Properties/AssemblyInfo.cs +++ b/86BoxManager/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.7.1.0")] -[assembly: AssemblyFileVersion("1.7.1.0")] \ No newline at end of file +[assembly: AssemblyVersion("1.7.2.0")] +[assembly: AssemblyFileVersion("1.7.2.0")] \ No newline at end of file diff --git a/86BoxManager/frmMain.cs b/86BoxManager/frmMain.cs index 432e278..d19c348 100644 --- a/86BoxManager/frmMain.cs +++ b/86BoxManager/frmMain.cs @@ -381,6 +381,8 @@ private void backgroundWorker_RunWorkerCompleted(object sender, RunWorkerComplet } } } + + VMCountRefresh(); } //Enable/disable relevant menu items depending on selected VM's status @@ -687,7 +689,7 @@ private void VMStart() } VMSort(sortColumn, sortOrder); - + VMCountRefresh(); } //Sends a running/pause VM a request to stop without asking the user for confirmation @@ -1130,7 +1132,6 @@ protected override void WndProc(ref Message m) btnConfigure.Enabled = true; } } - VMCountRefresh(); } else if (m.WParam.ToInt32() == 0) //VM was resumed @@ -1155,7 +1156,6 @@ protected override void WndProc(ref Message m) btnConfigure.Enabled = true; } } - VMCountRefresh(); } } @@ -1184,7 +1184,6 @@ protected override void WndProc(ref Message m) btnCtrlAltDel.Enabled = false; } } - VMCountRefresh(); } else if (m.WParam.ToInt32() == 0) //A dialog was closed @@ -1214,7 +1213,6 @@ protected override void WndProc(ref Message m) btnCtrlAltDel.Enabled = true; } } - VMCountRefresh(); } } @@ -1271,7 +1269,6 @@ protected override void WndProc(ref Message m) } } } - VMCountRefresh(); } //This is the WM_COPYDATA message, used here to pass command line args to an already running instance