From 7215f044b586d72f532fbf9455606786a2aa3346 Mon Sep 17 00:00:00 2001 From: "METANEOCORTEX\\Kotti" Date: Sat, 29 Jun 2024 00:06:30 +0200 Subject: [PATCH] +fix: Update Toolbar in case of Undo/Redo --- src/Notepad3.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Notepad3.c b/src/Notepad3.c index d81755bf8..77a4b48be 100644 --- a/src/Notepad3.c +++ b/src/Notepad3.c @@ -5132,7 +5132,6 @@ LRESULT MsgCommand(HWND hwnd, UINT umsg, WPARAM wParam, LPARAM lParam) EditEnsureConsistentLineEndings(Globals.hwndEdit); EndWaitCursor(); UpdateToolbar(); - UpdateStatusbar(false); } break; @@ -5147,6 +5146,7 @@ LRESULT MsgCommand(HWND hwnd, UINT umsg, WPARAM wParam, LPARAM lParam) //LimitNotifyEvents(EVM_UndoRedo); SciCall_Undo(); //RestoreNotifyEvents(); + UpdateToolbar(); } break; @@ -5156,6 +5156,7 @@ LRESULT MsgCommand(HWND hwnd, UINT umsg, WPARAM wParam, LPARAM lParam) //LimitNotifyEvents(EVM_UndoRedo); SciCall_Redo(); //RestoreNotifyEvents(); + UpdateToolbar(); } break; @@ -10020,6 +10021,7 @@ static void _UpdateTitlebarDelayed(const HWND hwnd) void UpdateToolbar() { _DelayUpdateToolbar(_MQ_STD); + _DelayUpdateStatusbar(_MQ_STD, false); _DelayUpdateTitlebar(_MQ_STD, Globals.hwndMain); }