Skip to content

Commit

Permalink
Minor fixes and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mscrivo committed Sep 21, 2024
1 parent c633d98 commit 8b829db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion NetSparkle
6 changes: 3 additions & 3 deletions OotD.Core/Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ private void SetMAPIFolder()

/// <summary>
/// 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.
/// </summary>
private void UpdateOutlookViewsList()
{
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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<UnsafeNativeMethods.WINDOWPOS>(m.LParam);
mwp.flags |= UnsafeNativeMethods.SWP_NOZORDER;
Marshal.StructureToPtr(mwp, m.LParam, true);
UnsafeNativeMethods.SendWindowToBack(this);
Expand Down

0 comments on commit 8b829db

Please sign in to comment.