From bbaf7465c427027ed4208be57f7c4e5b14552953 Mon Sep 17 00:00:00 2001 From: Jaime Bernardo Date: Mon, 16 Sep 2024 15:59:32 +0100 Subject: [PATCH] [AdvPaste]Fix utility invocation telemetry calls --- .../AdvancedPaste/AdvancedPasteModuleInterface/dllmain.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/AdvancedPaste/AdvancedPasteModuleInterface/dllmain.cpp b/src/modules/AdvancedPaste/AdvancedPasteModuleInterface/dllmain.cpp index bb6f2f952a..261fa43932 100644 --- a/src/modules/AdvancedPaste/AdvancedPasteModuleInterface/dllmain.cpp +++ b/src/modules/AdvancedPaste/AdvancedPasteModuleInterface/dllmain.cpp @@ -749,8 +749,6 @@ public: { Logger::trace(L"Launching new process"); launch_process_and_named_pipe(); - - Trace::AdvancedPaste_Invoked(L"AdvancedPasteUI"); } // hotkeyId in same order as set by get_hotkeys @@ -774,18 +772,21 @@ public: bring_process_to_front(); send_named_pipe_message(CommonSharedConstants::ADVANCED_PASTE_SHOW_UI_MESSAGE); + Trace::AdvancedPaste_Invoked(L"AdvancedPasteUI"); return true; } if (hotkeyId == 2) { // m_paste_as_markdown_hotkey Logger::trace(L"Starting paste as markdown directly"); send_named_pipe_message(CommonSharedConstants::ADVANCED_PASTE_MARKDOWN_MESSAGE); + Trace::AdvancedPaste_Invoked(L"MarkdownDirect"); return true; } if (hotkeyId == 3) { // m_paste_as_json_hotkey Logger::trace(L"Starting paste as json directly"); send_named_pipe_message(CommonSharedConstants::ADVANCED_PASTE_JSON_MESSAGE); + Trace::AdvancedPaste_Invoked(L"JsonDirect"); return true; } @@ -798,6 +799,7 @@ public: Logger::trace(L"Starting custom action id={}", id); send_named_pipe_message(CommonSharedConstants::ADVANCED_PASTE_CUSTOM_ACTION_MESSAGE, std::to_wstring(id)); + Trace::AdvancedPaste_Invoked(L"CustomActionDirect"); return true; } }