From 8b829dbeb304bf3bb2858ba520800898e50ad535 Mon Sep 17 00:00:00 2001 From: Michael Scrivo Date: Sat, 21 Sep 2024 09:04:29 -0400 Subject: [PATCH] Minor fixes and cleanup --- NetSparkle | 2 +- OotD.Core/Forms/MainForm.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/NetSparkle b/NetSparkle index 3dc302c..e99b8f0 160000 --- a/NetSparkle +++ b/NetSparkle @@ -1 +1 @@ -Subproject commit 3dc302cc01ae5c00539d3da83b99c62c7c924f85 +Subproject commit e99b8f00dd1f7d060474361462a58a524701fc86 diff --git a/OotD.Core/Forms/MainForm.cs b/OotD.Core/Forms/MainForm.cs index 1bb9678..d1fe5e9 100644 --- a/OotD.Core/Forms/MainForm.cs +++ b/OotD.Core/Forms/MainForm.cs @@ -382,7 +382,7 @@ private void SetMAPIFolder() /// /// This will populate a dropdown off the instance context menu with the available - /// views in outlook, it will also associate the menuitem with the event handler. + /// views in outlook, it will also associate the MenuItem with the event handler. /// private void UpdateOutlookViewsList() { @@ -664,7 +664,7 @@ private void UpdateCustomFolder(MAPIFolder? oFolder) try { - // Remove old item (selectmenu+1) + // Remove old item (SelectMenu+1) if (_customMenu != null && TrayMenu.Items.Contains(_customMenu)) { TrayMenu.Items.Remove(_customMenu); @@ -1324,7 +1324,7 @@ protected override void WndProc(ref Message m) !Startup.UpdateDetected && !_movingOrResizing: - var mwp = (UnsafeNativeMethods.WINDOWPOS)Marshal.PtrToStructure(m.LParam, typeof(UnsafeNativeMethods.WINDOWPOS))!; + var mwp = Marshal.PtrToStructure(m.LParam); mwp.flags |= UnsafeNativeMethods.SWP_NOZORDER; Marshal.StructureToPtr(mwp, m.LParam, true); UnsafeNativeMethods.SendWindowToBack(this);