Skip to content

Commit

Permalink
Report clicked on the pipe in case we are not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneRing committed Jul 23, 2022
1 parent a107861 commit 8502ef0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/toasteventhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ IFACEMETHODIMP ToastEventHandler::Invoke(_In_ IToastNotification * /*sender*/,
std::wcout << dataMap.at(L"button") << std::endl;
m_userAction = SnoreToastActions::Actions::ButtonClicked;
}
if (m_toast.useFalbackMode() && !m_toast.pipeName().empty()) {
Utils::writePipe(m_toast.pipeName(), m_toast.formatAction(m_userAction));
}
}
SetEvent(m_event);
return S_OK;
Expand Down

0 comments on commit 8502ef0

Please sign in to comment.