summaryrefslogtreecommitdiffstats
path: root/src/event_to_string.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-05-11 12:09:17 -0400
committerDavid Robillard <d@drobilla.net>2021-05-11 13:35:17 -0400
commit655b20bae493a517bd2163a1af379fd57abd3457 (patch)
tree264a0b7c11d297be5b3167f141cf9a1ce6659b4e /src/event_to_string.cpp
parent75ee1ed27d5d2c60e867abef09ee920446ac13de (diff)
downloadpatchage-655b20bae493a517bd2163a1af379fd57abd3457.tar.gz
patchage-655b20bae493a517bd2163a1af379fd57abd3457.tar.bz2
patchage-655b20bae493a517bd2163a1af379fd57abd3457.zip
Add Cleared event for implementing refresh without a race
Diffstat (limited to 'src/event_to_string.cpp')
-rw-r--r--src/event_to_string.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event_to_string.cpp b/src/event_to_string.cpp
index 4b23875..c8a6c42 100644
--- a/src/event_to_string.cpp
+++ b/src/event_to_string.cpp
@@ -56,6 +56,8 @@ struct EventPrinter {
PATCHAGE_UNREACHABLE();
}
+ std::string operator()(const event::Cleared&) { return "Cleared"; }
+
std::string operator()(const event::DriverAttached& event)
{
return fmt::format("Attached to {}", (*this)(event.type));