From 7383a0e57fc724da19d9a6e8b56e20012cc91dac Mon Sep 17 00:00:00 2001 From: Mataes Date: Sat, 9 May 2020 16:17:33 +0300 Subject: newstory: clear log --- plugins/NewStory/src/history_control.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugins/NewStory/src/history_control.cpp') diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 690e83ce9e..c005d18728 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -414,6 +414,13 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM data->redrawTimer.Start(100); break; + case NSM_CLEAR: + data->items.clear(); + + data->redrawTimer.Stop(); + data->redrawTimer.Start(100); + break; + case NSM_GETARRAY: return (LRESULT)&data->items; -- cgit v1.2.3