From e3d21fffe855b36f380d6582df32ca5117385ca5 Mon Sep 17 00:00:00 2001 From: VinsWorldcom Date: Sun, 20 Nov 2022 14:06:08 -0500 Subject: [PATCH] fix menu checkmark bug --- NppMarkdownPanel/Forms/MainResources.resx | 2 +- NppMarkdownPanel/MarkdownPanelController.cs | 8 ++++---- NppMarkdownPanel/Properties/AssemblyInfo.cs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/NppMarkdownPanel/Forms/MainResources.resx b/NppMarkdownPanel/Forms/MainResources.resx index d341f35..d92661e 100644 --- a/NppMarkdownPanel/Forms/MainResources.resx +++ b/NppMarkdownPanel/Forms/MainResources.resx @@ -123,7 +123,7 @@ MarkdownPanel for Notepad++ -Version 0.6.5.2 +Version 0.6.5.3 Created by Mohzy 2019 Github: https://github.com/mohzy83/NppMarkdownPanel diff --git a/NppMarkdownPanel/MarkdownPanelController.cs b/NppMarkdownPanel/MarkdownPanelController.cs index bf66fff..aaa6ed4 100644 --- a/NppMarkdownPanel/MarkdownPanelController.cs +++ b/NppMarkdownPanel/MarkdownPanelController.cs @@ -311,8 +311,8 @@ private void SyncViewWithCaret() { syncViewWithCaretPosition = !syncViewWithCaretPosition; syncViewWithScrollPosition = false; - Win32.CheckMenuItem(Win32.GetMenu(PluginBase.nppData._nppHandle), PluginBase._funcItems.Items[2]._cmdID, Win32.MF_BYCOMMAND | (syncViewWithScrollPosition ? Win32.MF_CHECKED : Win32.MF_UNCHECKED)); - Win32.CheckMenuItem(Win32.GetMenu(PluginBase.nppData._nppHandle), PluginBase._funcItems.Items[1]._cmdID, Win32.MF_BYCOMMAND | (syncViewWithCaretPosition ? Win32.MF_CHECKED : Win32.MF_UNCHECKED)); + Win32.CheckMenuItem(Win32.GetMenu(PluginBase.nppData._nppHandle), PluginBase._funcItems.Items[3]._cmdID, Win32.MF_BYCOMMAND | (syncViewWithScrollPosition ? Win32.MF_CHECKED : Win32.MF_UNCHECKED)); + Win32.CheckMenuItem(Win32.GetMenu(PluginBase.nppData._nppHandle), PluginBase._funcItems.Items[2]._cmdID, Win32.MF_BYCOMMAND | (syncViewWithCaretPosition ? Win32.MF_CHECKED : Win32.MF_UNCHECKED)); if (syncViewWithCaretPosition) ScrollToElementAtLineNo(scintillaGateway.GetCurrentLineNumber()); } @@ -320,8 +320,8 @@ private void SyncViewWithScroll() { syncViewWithScrollPosition = !syncViewWithScrollPosition; syncViewWithCaretPosition = false; - Win32.CheckMenuItem(Win32.GetMenu(PluginBase.nppData._nppHandle), PluginBase._funcItems.Items[1]._cmdID, Win32.MF_BYCOMMAND | (syncViewWithCaretPosition ? Win32.MF_CHECKED : Win32.MF_UNCHECKED)); - Win32.CheckMenuItem(Win32.GetMenu(PluginBase.nppData._nppHandle), PluginBase._funcItems.Items[2]._cmdID, Win32.MF_BYCOMMAND | (syncViewWithScrollPosition ? Win32.MF_CHECKED : Win32.MF_UNCHECKED)); + Win32.CheckMenuItem(Win32.GetMenu(PluginBase.nppData._nppHandle), PluginBase._funcItems.Items[2]._cmdID, Win32.MF_BYCOMMAND | (syncViewWithCaretPosition ? Win32.MF_CHECKED : Win32.MF_UNCHECKED)); + Win32.CheckMenuItem(Win32.GetMenu(PluginBase.nppData._nppHandle), PluginBase._funcItems.Items[3]._cmdID, Win32.MF_BYCOMMAND | (syncViewWithScrollPosition ? Win32.MF_CHECKED : Win32.MF_UNCHECKED)); if (syncViewWithScrollPosition) ScrollToElementAtLineNo(scintillaGateway.GetFirstVisibleLine()); } diff --git a/NppMarkdownPanel/Properties/AssemblyInfo.cs b/NppMarkdownPanel/Properties/AssemblyInfo.cs index ee3cbe0..633d1eb 100644 --- a/NppMarkdownPanel/Properties/AssemblyInfo.cs +++ b/NppMarkdownPanel/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("0.6.5.*")] -[assembly: AssemblyFileVersion("0.6.5.2")] +[assembly: AssemblyFileVersion("0.6.5.3")]