From 7c5e7e737ab1c68fb3695ff8ff9ea37883fc3888 Mon Sep 17 00:00:00 2001 From: farkasdvd <30418389+farkasdvd@users.noreply.github.com> Date: Wed, 26 May 2021 00:07:13 +0200 Subject: Alarm snoozes after timeout (#29) Changes the default behavior for an alarm timeout from "no action" to "snooze". --- src/snap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/snap.cpp b/src/snap.cpp index a55f760..00c4743 100644 --- a/src/snap.cpp +++ b/src/snap.cpp @@ -176,7 +176,7 @@ public: b.set_closed_callback([appointment, alarm, on_response, sound, awake, haptic] (const std::string& action){ Snap::Response response; - if (action == ACTION_SNOOZE) + if ((action == ACTION_SNOOZE) || (appointment.is_ubuntu_alarm() && action.empty())) response = Snap::Response::Snooze; else if (action == ACTION_SHOW_APP) response = Snap::Response::ShowApp; -- cgit v1.2.3